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

Logging in NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 7.0 System Administrator’s Guide674372-005
5-24
Configuring Logging for the NSJSP Container and
Web Applications
The logger writes log messages about the context component, /servletsj/admin.
The context component, which refers to the Admin Web application, is located within
the Host component, localhost. The localhost component, in turn, is located
within the engine component, NSJSP.
The following lines denote the log level and handler properties of the logger, called
org.apache.catalina.core.ContainerBase.[NSJSP].[localhost].[/ser
vletsj/host-manager]:
org.apache.catalina.core.ContainerBase.[NSJSP].[localhost].[/ser
vletsj/host-manager].level = INFO
org.apache.catalina.core.ContainerBase.[NSJSP].[localhost].[/ser
vletsj/host-manager].handlers = 5host-
manager.org.apache.juli.FileHandler
The logger writes log messages about the context component, /servletsj/host-
manager. The context component, which refers to the NSJSP Manager application, is
located within the Host component, localhost. The localhost component, in turn,
is located within the engine component, NSJSP.
All logs originating from the Host component and the three web applications are
handled by the JULI File Handler. Each of the four handlers that are defined by the File
Handler class (2localhost.*, 3manager.*, 4admin.*, 5host-manager.*)
open four different files as indicated by the prefix attribute of the handlers.
Any log originating outside the Host component and the three web applications will be
handled by the 1NSJSP.* NSJSPLogHandler handler, which is associated with the
root logger.
Configuring Logging for the NSJSP Container and Web
Applications
This section describes the procedures to configure logging for the NSJSP servlet
container and web applications running on the server class Host.
Each server class includes a logging.properties file, which is located in
<NSJSP_HOME>/conf. You can configure the logging.properties file to manage
logging related to the server class components and the web applications running on
the server class Host. When the logging.properties file is configured, and NSJSP
is restarted, all logs will be written in the newly created file, called <server
class>.<date>.log. This log file will be created in <NSJSP_HOME>/logs.
Additionally, each web application running on the server class Host can include its own
logging.properties file, which is located in
<NSJSP_HOME>/webapps/<application name>/WEB-INF/classes. You can
configure this file to manage logging related to the specific web application.
Configuring the web application-specific logging.properties file, which is located
in <NSJSP_HOME>/webapps/<application name>/WEB-INF/classes is not a
mandatory procedure. It is required only to configure logging that is specific to the
application. If an application-specific logging.properties file is not present, the