uCosminexus Application Server, Messages
When you develop applications using the following functionality, valid messages are output during the development process. The log in which these messages are output is called the development check log.
No prefixes and IDs are output in these messages. Also, these messages are not output by default. Specify the settings to output the messages as and when required and then develop the applications.
This section describes the output destination, output format, level, and settings for the development check log.
The development check log is output to a file generated on the console or at the following path:
Log-output-directory-for-J2EE-servers-(ejb.server.log.directory)\cjdevelopment[n].log
n indicates the number of log files. The settings for the number of files n are described in 24.4(4)Settings for number, size, and level of log files.
The development check log messages are output in the following format:
| Number | Date | Time | AP name | Pid | tid | Space | Message text | CRLF |
The following information is output in the "message text":
Furthermore, the message text is output in two separate rows as follows:
| 1st row | Log level | Name of the class that outputs the message | Name of the method that outputs the message |
| 2nd row | Message details | ||
The development check log can be output in the following nine levels. From item no. 2 to 8, higher the item no., more detailed is the information that is output.
Table 24-1 Log levels provided for the development check log
| Item no. | Level | Remarks# |
|---|---|---|
| 1 | ALL | All the messages are output to the log |
| 2 | SEVERE | Important level messages, such as messages for fatal errors, are output to the log |
| 3 | WARNING | Warning level messages are output to the log |
| 4 | INFO | Information level messages are output to the log |
| 5 | CONFIG | Static level messages are output to the log |
| 6 | FINE | Debug level log is output (trace level information) |
| 7 | FINER | Debug level log is output |
| 8 | FINEST | Debug level log is output (Most detailed level) |
| 9 | OFF | No message is output Default level |
You specify the settings for the number, size, and level of development check log files in the <configuration> tag of the logical J2EE server (j2ee-Server) in the Easy Setup definition file.
The following table lists and describes the keys that can be used to set up the number, size, and level of log files.
Table 24-2 Details of keys that can be used to set up the number, size, and level of development check log files
| Item | Key name | Contents | Default value | Unit |
|---|---|---|---|---|
| Number of files | ejbserver.logger.channels.define.DevelopmentLogFile.filenum | Specifies the number of log files output with the development check log functionality. | 4 | Number of files |
| File size | ejbserver.logger.channels.define.DevelopmentLogFile.filesize | Specifies the size of the log files output with the development check log functionality. | 1048576 | byte |
| Log output level | ejbserver.logger.DevelopmentLogFile.level | Specifies the log output level of the development check log functionality. | OFF | -- |
Note "Default value" is the value that is assumed when no key is specified.
The following is an example of using the Easy Setup definition file to set up the number, size, and level of development check log files:
: <logical-server-name>j2ee-server</logical-server-name> <configuration> <param> <param-name> ejbserver.logger.channels.define.DevelopmentLogFile.filenum </param-name> <param-value>4</param-value> </param> <param> <param-name> ejbserver.logger.channels.define.DevelopmentLogFile.filesize </param-name> <param-value>1048576</param-value> </param> <param> <param-name> ejbserver.logger.DevelopmentLogFile.level </param-name> <param-value>OFF</param-value> </param> </configuration> : |
For details on the parameters and the Easy Setup definition file, see 2.4 usrconf.properties (User property file for J2EE servers) and 4.6 Easy Setup definition file in the manual uCosminexus Application Server Definition Reference Guide.
All Rights Reserved. Copyright (C) 2012, 2013, Hitachi, Ltd.