Configuring Logging
This chapter briefly describes how to configure logging and view the server log. It contains the
following sections:
■
“About Logging” on page 165
■
“Configuring Logging” on page 168
About Logging
■
“Log Records” on page 165
■
“The Logger Namespace Hierarchy” on page 166
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
-
dd
T
hh
:
mm
:
ss
.
SSS
-
Z
|
Log Level
|
ProductName-Version
|
LoggerName
|
Key Value Pairs
|
Message
|#]
For example:
17
C H A P T E R
1 7
165
Содержание Sun GlassFish Enterprise Server 2.1
Страница 12: ...12 ...
Страница 13: ...Figures FIGURE 1 1 Enterprise Server Instance 29 FIGURE 9 1 RoleMapping 105 13 ...
Страница 14: ...14 ...
Страница 18: ...18 ...
Страница 38: ...38 ...
Страница 62: ...62 ...
Страница 96: ...96 ...
Страница 126: ...126 ...
Страница 160: ...160 ...
Страница 214: ...214 ...
Страница 218: ...218 ...
Страница 230: ...230 ...