Re : [fpc-pascal] TEventLog.FileName location: Change default file location for filename without change unit code.

2010-09-21 Thread phoebus phoebus
Hi, Thanks Michael for the update. >> The default is just that, the default. If you specify a filename, then that >> is >>used. Yes, that's right. Thanks also jeff for the advise on Windows platform. Regards, Frphoebus ___ fpc-pascal maill

Re: [fpc-pascal] TEventLog.FileName location: Change default file location for filename without change unit code.

2010-09-21 Thread DaWorm
On Tue, Sep 21, 2010 at 9:39 AM, Michael Van Canneyt wrote: > begin >> Result:=ChangeFileExt(Paramstr(0),'.log'); >> end; >> > Function TEventLog.DefaultFileName : String; > On Windows, this can be problematic. Win7 for sure, usually Vista, and any version of Windows that has

Re: [fpc-pascal] TEventLog.FileName location: Change default file location for filename without change unit code.

2010-09-21 Thread Michael Van Canneyt
On Tue, 21 Sep 2010, phoebus phoebus wrote: Hi, I'm using FPC 2.2.4 with Lazarus. The unit eventlog is great for logging events. SO i use it.   My question is how to change the default location for the filename for Linxu ssytem which is harcoded in the code. The documentation for TEventLog

[fpc-pascal] TEventLog.FileName location: Change default file location for filename without change unit code.

2010-09-21 Thread phoebus phoebus
Hi, I'm using FPC 2.2.4 with Lazarus. The unit eventlog is great for logging events. SO i use it.   My question is how to change the default location for the filename for Linxu ssytem which is harcoded in the code. The documentation for TEventLog.FileName wrote: " FileName is the name of the log