|How to change output of DefaultSessionLog to file through SessionCustomizer [message #381394]
||Mon, 22 September 2008 18:10
| Bill Blalock
Registered: July 2009
What is the correct way to change the output of DefaultSessionLog from |
stdout to a file using a subclass of SessionCustomizer?
in these examples the String logFilename = "eclipselink.log"
First I tried:
new FileOutputStream( logFilename )));
Then I tried:
SessionLog sessionLog = new DefaultSessionLog() ;
No errors, but no eclipselink.log file either. Output still going to
The JPA project is packaged in a jar file, the jar file is used in an
Eclipse RCP. The eclipselink.log file should be created in the .metadata
These code snippets are part of a subclass of SessionCustomizer and the
subclass is referenced in persistence.xml and is being executed.
Powered by FUDForum
. Page generated in 0.01729 seconds