PDA

View Full Version : Logfile directory..!


14-Jul-2008, 01:13 PM
Hello Fabio,

How do I set the directory where Eurekalog saves exception log files in
code? I need to save it in the documents folder, as required by Vista.

Thanks
Khurram

Khurram Zaveri
14-Jul-2008, 05:13 PM
Fyi, My registration email address is kzaveri@gmail.com

Thanks
Khurram



<k_zaveri@hotmail.com> wrote in message
news:g5fheu$iqb$1@srv1.eurekalog.com...
> Hello Fabio,
>
> How do I set the directory where Eurekalog saves exception log files in
> code? I need to save it in the documents folder, as required by Vista.
>
> Thanks
> Khurram
>

admin
15-Jul-2008, 02:22 PM
Hi,

you can simple use the following code:



CurrentEurekaLogOptions.OutputPath := 'YOUR PATH HERE';

Unregistered
21-Jul-2008, 12:15 PM
Admin, may be you should add an option to specify the initial location of log files? You know, the current directory is not always writable. And people want to implement their desires without coding work, just setting switches in the options.
Yes, you can write the code, but to do it in every app? Won't it be just more convenient to add combo box in project's options with some predifined locations? I.e.: current folder (the current behavior), temp folder, user app data, etc.
This will cover the most used scenarios and leave the manual control (CurrentEurekaLogOptions.OutputPath) for rare exotic schemes.

admin
21-Jul-2008, 01:12 PM
Hi,

this option is just available here.

Just open the EurekaLog Options form at the "Log File options" Tab and set the "Output Path" field.

To choose a system folder you can simple use as value an Environment Variable from the "Variables" windows (just clicking on the "Variables" button).

That's all! ;-)

Unregistered
21-Jul-2008, 01:23 PM
Yeah, you are right. I forgot about variables.

admin
21-Jul-2008, 01:37 PM
You're welcome! ;)