NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator's Guide

Migrating to NSJSP 6.1
NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator’s Guide—596210-006
7-16
Logging Configuration of Servlet Container
Components
<Logger
className="com.tandem.servlet.catalina.logger.NSJSPFileLogger"
prefix="NSJSP_Catalina." suffix=".log" timestamp="true"/>
This configuration creates a log file called NSJSP_catalina.<date>.log in the
<NSJSP_HOME>/logs folder.
The default configuration of the localhost is as follows:
<Logger
className="com.tandem.servlet.catalina.logger.NSJSPFileLogger"
directory="logs" prefix="localhost." suffix=".log"
timestamp="true"/>
According to the Logger configuration, the localhost.<date>.log file is created in
the <NSJSP_HOME>/logs folder. Log messages related to the Engine and all its child
elements are logged to the localhost.<date>.log file.
In the default configuration of NSJSP 5.0, log messages generated by components
other than Engine and its child components are written in the STDOUT file, which is the
servlet.log file, in the <iTP WebServer Home>/logs folder.
Logging Configuration in NSJSP 6.0
In NSJSP 6.0, all the NSJSP servlet container-specific logs are published in the
STDOUT file, which is servlet.log by default, and all the logs related to Admin,
Manager and Host-Manager are published in their respective log files.
Logging is configured in the logging.properties file. There is no explicit
configuration for the Engine and the Host elements in the logging.properties file.
As a result, logging is handled by the root logger. The root logger defines an
NSJSPLogHandler that logs all messages to the STDOUT file. The STDOUT file is
configured as the servlet.out file in the <NSJSP_HOME>/logs directory. The
following is the root logger configuration:
.handlers = com.tandem.servlet.logging.NSJSPLogHandler
NSJSP 6.0 includes the following default configuration for the Admin Web application:
Note. In the default configuration of NSJSP 5.0, this file is not created as the Logger definition
of the Engine is overridden by the Logger configuration in localhost, which is one of the child
elements of Engine.
Note. The Servlet Server Class includes the STDOUT file, which is defined as the
servlet.log and the STDERR file, which is defined as servlet_error.log. Both these
files are available in the <iTP WebServer Home>/logs folder. The NSJSPADMIN Server
Class includes both STDOUT and STDERR, which are defined as nsjspadmin.log file in the
<iTP WebServer Home>/logs folder.
Note. The Admin Web application, Manager Web application, and the Host-Manager do not
include a default logging configuration.