Skip to main content

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 15:18 Go to next message
Bohdan  is currently offline Bohdan Friend
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 16:00 Go to previous message
James Sutherland is currently offline James SutherlandFriend
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: Fri Jun 22 21:11:41 GMT 2018

Powered by FUDForum. Page generated in 0.02168 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top