Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2010-12

TEventLog rewrite the log file

4 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ik

Hello,

I've started using the TEventLog class and it seems to rewrite any existed content of the log file instead of append it.
The code uses fmCreate, so I do not understand why it rewrite the content. is it a bug, or am I missing something ?

Thanks,

Ido

LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il

Michael Van Canneyt
to ik
ik wrote 6 lines
Hello, I've started using the TEventLog class and it seems to rewrite any existed content of the log file instead of append it. The code uses fmCreate, so I do not understand why it rewrite the content. is it a bug, or am I missing something ?

Using fmCreate always rewrites.

Appending is currently not supported.

I'm not against implementing such feature, but it's not high on my todo list.

Michael.

ik
to Michael Van Canneyt
Michael Van Canneyt wrote 21 lines
On Tue, 28 Dec 2010, ik wrote: Hello, > > I've started using the TEventLog class and it seems to rewrite any existed > content of the > log file instead of append it. > The code uses fmCreate, so I do not understand why it rewrite the content. > is it a bug, or > am I missing something ? > Using fmCreate always rewrites. Appending is currently not supported. I'm not against implementing such feature, but it's not high on my todo list.

Will try to patch it (add property of "toappend" or something like that) this weekend :)

Show quoted text 6 lines
Michael. _______________________________________________ fpc-pascal maillist - http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Ido

ik
to ik

Hi,

I have patched the issue and placed it here (
http://bugs.freepascal.org/view.php?id=18355).

Now I need time to think how to make the ability to add a feature for "log rotate" like with the Log4r, and how we can choose to make all of our output to go to the log if we choose it (I mean the design rather then the actual work), and I think this class will be perfect :)

Ido

LINESIP - Opening the source for communication
http://www.linesip.com
http://www.linesip.co.il

ik wrote 39 lines
On Tue, Dec 28, 2010 at 15:06, Michael Van Canneyt < > wrote: > > > On Tue, 28 Dec 2010, ik wrote: > > Hello, >> >> I've started using the TEventLog class and it seems to rewrite any >> existed content of the >> log file instead of append it. >> The code uses fmCreate, so I do not understand why it rewrite the >> content. is it a bug, or >> am I missing something ? >> > > Using fmCreate always rewrites. > > Appending is currently not supported. > > I'm not against implementing such feature, but it's not high on my todo > list. > Will try to patch it (add property of "toappend" or something like that) this weekend :) > > Michael. > _______________________________________________ > fpc-pascal maillist - > http://lists.freepascal.org/mailman/listinfo/fpc-pascal > Ido