4.3.5 Acquiring the Application User Log
You can acquire the application log when the settings are set so that the application log is output in the Hitachi Trace Common Library format. The user logs are in the following two types:
-
User log output in the J2EE application (J2EE component) running on the J2EE server.
-
User log output in the EJB client application.
For details on the log in the Trace Common Library format, see 5.2 Application Server Log.
- Organization of this subsection
(1) Acquiring the user logs of J2EE application
For the log output destination of a J2EE application, the log is output to a file, which has a name containing the prefix specified in the ejbserver.application.userlog.CJLogHandler.handler-name.path parameter in the configuration tag of the logical J2EE server (j2ee-server) in the simple setup definition file, in the directory below. Note that the handler name is specified in the handler-name to identify the key values.
-
In Windows
Log-output-destination-root-(-ejb.server.log.directory-value-)\user\ (default is J2EE-server-work-directory\ejb\J2EE-server-name\logs\user)
-
In UNIX
Log-output-destination-root-(-ejb.server.log.directory-value-)/user/ (default is J2EE-server-work-directory/ejb/J2EE-server-name /logs/user)
For details on the settings to output user logs in J2EE applications, see 8.8 Setting the user log output of J2EE applications in the uCosminexus Application Server Expansion Guide.
(2) Acquiring the EJB client application user log
For the user log output destination of an EJB client application, the log is output to the file with the name having the prefix specified in the ejbserver.application.userlog.CJLogHandler.handler-name.path key value of the EJB client application system property in the directory below. Note that the handler name is specified in the handler-name to identify the key values.
-
In Windows
Log-output-destination-root-(-ejb.server.log.directory-value-)\user\(default is J2EE-server-work-directory\ejb\J2EE-server-name\logs\user)
-
In UNIX
Log-output-destination-root-(-ejb.server.log.directory-value-)/user/ (default is J2EE-server-work-directory/ejb/J2EE-server-name/logs/user)
For the method of setting the system properties to output user logs in EJB client applications, see 8.10 Setting the user log output of EJB client applications (When using the cjclstartap command) or 8.11 Implementing and setting the user log output of EJB client applications (When using the vbj command) in the uCosminexus Application Server Expansion Guide.