mysterious logging [message #754291] |
Tue, 01 November 2011 16:58  |
Eclipse User |
|
|
|
Hi,
I'm testing a custom logger and found different logging information if I use the custom logger in comparison to use the standard logger.
output of standard logger
[EL Info]: 2011-11-01 11:56:36.358--ServerSession(8961198)--Thread(Thread[AWT-EventQueue-0,6,main])--EclipseLink, version: Eclipse Persistence Services - 2.3.0.v20110604-r9504
[EL Fine]: 2011-11-01 11:56:36.734--Thread(Thread[AWT-EventQueue-0,6,main])--Detected Vendor platform: org.eclipse.persistence.platform.database.JavaDBPlatform
[EL Config]: 2011-11-01 11:56:36.812--ServerSession(8961198)--Connection(9589196)--Thread(Thread[AWT-EventQueue-0,6,main])--connecting(DatabaseLogin(
platform=>JavaDBPlatform
user name=> "test"
datasource URL=> "jdbc:derby://localhost/Z:/Projekte.INDIGO/OCoM/orienteeringDB;create=true"
))
[EL Config]: 2011-11-01 11:56:36.828--ServerSession(8961198)--Connection(3693744)--Thread(Thread[AWT-EventQueue-0,6,main])--Connected: jdbc:derby://localhost:1527/Z:/Projekte.INDIGO/OCoM/orienteeringDB;create=true
User: test
Database: Apache Derby Version: 10.8.1.2 - (1095077)
Driver: Apache Derby Network Client JDBC Driver Version: 10.8.1.2 - (1095077)
output of custom logger
21:55:48,255 MEZ AWT-EventQueue-0 CustomSessionLog INFO CustomSessionLog.java:log:24 topLink_version
21:55:48,663 MEZ AWT-EventQueue-0 CustomSessionLog INFO CustomSessionLog.java:log:24 dbPlatformHelper_detectedVendorPlatform
21:55:48,709 MEZ AWT-EventQueue-0 CustomSessionLog INFO CustomSessionLog.java:log:24 connecting
21:55:48,725 MEZ AWT-EventQueue-0 CustomSessionLog INFO CustomSessionLog.java:log:24 connected_user_database_driver
21:55:48,913 MEZ AWT-EventQueue-0 CustomSessionLog INFO CustomSessionLog.java:log:24 login_successful
21:55:48,991 MEZ AWT-EventQueue-0 CustomSessionLog INFO CustomSessionLog.java:log:24 CREATE TABLE CLUBS (NAME VARCHAR(255) NOT NULL, CITY VARCHAR(255), COUNTRY VARCHAR(255), FKCONTACT INTEGER, REGION VARCHAR(255), PRIMARY KEY (NAME))
21:55:49,178 MEZ AWT-EventQueue-0 CustomSessionLog INFO CustomSessionLog.java:log:24 VALUES(1)
21:55:49,225 MEZ AWT-EventQueue-0 CustomSessionLog INFO CustomSessionLog.java:log:24
The logging level is both time the same.(FINE)
I've expected the same output for both cases. What's wrong, my thinking or EclipseLink. Can anybody explain me.
Rainer
|
|
|
Re: mysterious logging [message #755226 is a reply to message #754291] |
Mon, 07 November 2011 13:18  |
Eclipse User |
|
|
|
The string being logged by your custom logger are the message ids. It seems your custom logger is not translating them.
Refer to the default logger for the correct code on how to do this.
|
|
|
Powered by
FUDForum. Page generated in 0.07951 seconds