Sun GlassFish Enterprise Server 2.1 Administration Guide

About Logging

Log Records

The Enterprise Server uses the Java EE platform Logging API specified in JSR 047. Enterprise Server logging messages are recorded in the server log, normally found at domain-dir/logs/server.log. When a log is rotated, Enterprise Server creates a new, empty file named server.log and renames the old file server.log_date, where date is the date and time when the file was rotated.

The components of the Enterprise Server generate logging output. Application components can also generate logging output.

Application components may use the Apache Commons Logging Library to log messages. The platform standard JSR 047 API, however, is recommended for better log configuration.

Log records follow a uniform format:

[#|yyyy-mm-ddThh:mm:ss.SSS-Z|Log Level|ProductName-Version|LoggerName|Key Value Pairs|Message|#]

For example:

[#|2006-10-21T13:25:53.852-0400|INFO|sun-appserver9.1|javax.enterprise.
system.core|_ThreadID=13;|CORE5004: Resource Deployed: 
[cr:jms/DurableConnectionFactory].|#]

In this example,

The log record format might be changed or enhanced in future releases.

The Logger Namespace Hierarchy

The Enterprise Server provides a logger for each of its modules. The following table lists the names of the modules and the namespace for each logger in alphabetical order, as they appear on the Log Levels page of the Admin Console (see Configuring Log Levels). The last three modules in the table do not appear on the Log Levels page.

Table 17–1 Enterprise Server Logger Namespaces

Module Name 

Namespace 

Admin 

javax.enterprise.system.tools.admin

Classloader 

javax.enterprise.system.core.classloading

Configuration 

javax.enterprise.system.core.config

Connector 

javax.enterprise.resource.resourceadapter

CORBA 

javax.enterprise.resource.corba

Deployment 

javax.enterprise.system.tools.deployment

EJB Container 

javax.enterprise.system.container.ejb

Group Management Service (cluster and enterprise profiles only) 

javax.ee.enterprise.system.gms

JavaMail 

javax.enterprise.resource.javamail

JAXR 

javax.enterprise.resource.webservices.registry

JAXRPC 

javax.enterprise.resource.webservices.rpc

JAXWS 

javax.enterprise.resource.webservices.javaws

JBI 

com.sun.jbi

JMS 

javax.enterprise.resource.jms

JTA 

javax.enterprise.resource.jta

JTS 

javax.enterprise.system.core.transaction

MDB Container 

javax.enterprise.system.container.ejb.mdb

Naming 

javax.enterprise.system.core.naming

Persistence 

oracle.toplink.essentials, javax.enterprise.resource.jdo, javax.enterprise.system.container.cmp

Node Agent (cluster and enterprise profiles only) 

javax.ee.enterprise.system.nodeagent

Root 

javax.enterprise

SAAJ 

javax.enterprise.resource.webservices.saaj

Security 

javax.enterprise.system.core.security

Self Management 

javax.enterprise.system.core.selfmanagement

Server 

javax.enterprise.system

Synchronization (cluster and enterprise profiles only) 

javax.ee.enterprise.system.tools.synchronization

Util 

javax.enterprise.system.util

Verifier 

javax.enterprise.system.tools.verifier

Web Container 

javax.enterprise.system.container.web