J2SE property file format.
Specify the key as follows:
key-name=value
This file specifies the system properties for the user log in the Java application when using the vbj command.
The properties set up in this file are read by the Java application and hence, you need to set the properties in the system properties. For details on the implementation of user log output in Java applications, see 9.11 Implementing and setting up user log output for EJB client applications (when vbj command is used) in the manual uCosminexus Application Server Expansion Guide.
Any storage location and file name is possible.
The following table lists the keys that can be specified. For details on the keys, see 14.3(4)(a) Keys beginning with ejbserver.application. Also, if required, see 2.4(5)(b) Keys beginning with ejbserver.application.
Table 14-4 Keys that can be specified in the property setup file for the user log of the Java application
Key name | Contents |
---|---|
ejbserver.application.userlog.CJLogHandler.handler-name.appname | Specify the default application name that is output to the AppName field. |
ejbserver.application.userlog.CJLogHandler.handler-name.autoFlush.enabled | Specify whether flush is to be carried out after the message is output. |
ejbserver.application.userlog.CJLogHandler.handler-name.count | Specify the number of log files. |
ejbserver.application.userlog.CJLogHandler.handler-name.encoding | Specify encoding of the character strings to be output. |
ejbserver.application.userlog.CJLogHandler.handler-name.filter | Specify the filter to be used with its full name, including the package name. |
ejbserver.application.userlog.CJLogHandler.handler-name.formatter | Specify the formatter that you will use along with its full name, including the package name. |
ejbserver.application.userlog.CJLogHandler.handler-name.level | Specify an upper-limit of a log collection level. |
ejbserver.application.userlog.CJLogHandler.handler-name.limit | Specify the capacity of a log file. |
ejbserver.application.userlog.CJLogHandler.handler-name.msgid | Specify the default message ID that is output to the MsgID field. |
ejbserver.application.userlog.CJLogHandler.handler-name.path | Specify the prefix of log file name. |
ejbserver.application.userlog.CJLogHandler.handler-name.separator | Use the CJSimpleFormatter and specify a separator to output a message in one sentence. |
ejbserver.application.userlog.loggers | Declare the names of the loggers to be used. |
ejbserver.application.userlog.Logger.logger-name.filter | Specify the full name including the package name of the filter used in the logger. |
ejbserver.application.userlog.Logger.logger-name.handlers | Specify the handler class for the specified logger name. |
ejbserver.application.userlog.Logger.logger-name.level | Specify the output level of the logger. |
ejbserver.application.userlog.Logger.logger-name.useParentHandlers | Specify whether the log record is to be transmitted from the logger that received the log record to the handler connected to the parent logger. |
The storage location is as follows:
A sample is as follows:
# user-log handler function |