At the moment, the exceptions are ignored. I'd like them added to the Message. The current format is:
{{Level}}| {{username}}| {{Message}}| {{Timestamp}}| {{Emitter}}| {{method}}
(P.S. I'd like a way to easily copy/paste that definition)
I can modify the order of the fields if necessary in my logger definition if that is an easy workaround.
Example text with 2 messages: (first has no stack trace, second one does)
Code: Select all
INFO| user1| User login successfull: dom1\user1| Feb 15, 2012 5:08:33 PM| aaa.bbb.CCCC| startup
SEVERE| user1| Error checking DB version!| Feb 15, 2012 5:08:35 PM| aaa.bbb.CommonUtilities| get_Version
java.lang.IllegalArgumentException: NamedQuery of name: FooProperty.findByKeyword not found.
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.getDatabaseQueryInternal(EJBQueryImpl.java:571)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setParameterInternal(EJBQueryImpl.java:1190)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setParameter(EJBQueryImpl.java:1079)
at org.eclipse.persistence.internal.jpa.EJBQueryImpl.setParameter(EJBQueryImpl.java:73)