Conguring Logging
Thischapter briey describes how to congure logging and view the server log. It contains the
followingsections:
“AboutLogging” on page 165
“ConguringLogging” on page 168

About Logging

“LogRecords” on page 165
“TheLogger Namespace Hierarchy” on page 166

LogRecords

TheEnterprise Server uses the Java EE platform Logging API specied in JSR 047. Enterprise
Serverlogging 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
lenamed server.log and renames the old le server.log_date, where date is the date and
timewhen the le was rotated.
Thecomponents of the Enterprise Server generate logging output. Application components can
alsogenerate logging output.
Applicationcomponents may use the Apache Commons Logging Library to log messages. The
platformstandard JSR 047 API, however, is recommended for better log conguration.
Logrecords follow a uniform format:
[#|yyyy-mm-ddThh:mm:ss.SSS-Z|Log Level|ProductName-Version|LoggerName|Key Value Pairs|Message|#]
Forexample:
17
CHAPTER 17
165