Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » EclipseLink logging to file - append instead of overwrite(EclipseLink logging to file - append instead of overwrite)
EclipseLink logging to file - append instead of overwrite [message #629244] Mon, 27 September 2010 11:18 Go to next message
Bohdan  is currently offline Bohdan
Messages: 2
Registered: September 2010
Junior Member
I configured persistence.xml to log to file. Which works fine except for one problem. Logger overwrites all log entries in file with log data from new transaction.

I would like to append log data instead. I did google search and tried different configuration options, but nothing helped.

Can someone suggest the solution?
Re: EclipseLink logging to file - append instead of overwrite [message #629268 is a reply to message #629244] Mon, 27 September 2010 12:00 Go to previous message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

There is not append option for the file logging. You can log a bug request for this.

A workaround is to make your own SessionLog that subclasses DefaultSessionLog and overwrites the setWriter() method to pass the append flag to the FileWriter.


James : Wiki : Book : Blog : Twitter
Previous Topic:Clustering Jboss with Eclipselink
Next Topic:Cannot access a secure jms coordinated cache topic on JBoss AS
Goto Forum:
  


Current Time: Thu Jul 31 01:22:56 EDT 2014

Powered by FUDForum. Page generated in 0.01677 seconds