Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » mysterious logging
mysterious logging [message #754291] Tue, 01 November 2011 20:58 Go to next message
Rainer H. is currently offline Rainer H.
Messages: 15
Registered: July 2009
Junior Member
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 18:18 Go to previous message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

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.


James : Wiki : Book : Blog : Twitter
Previous Topic:Calling a stored procedure with BLOB input parameter
Next Topic:mysterious logging
Goto Forum:
  


Current Time: Fri Sep 19 16:01:26 GMT 2014

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

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