The server log settings section contains settings for enabling and disabling logging, setting logging level, and setting the output format of the log messages. This section has the following format:
# Server.conf settings: # details of setting "log4j.rootCategory": # For First attribute: # Depending on the logging level needed, set the appropriate level # Possible values : OFF, FATAL, ERROR, WARN, INFO, DEBUG, ALL # For Second attribute: # if you want to enable log console, then add SvrConsoleAppender, else don't add this. # For Third attribute: # if you want to enable logging into file, theb add SvrFileAppender, else don't add this. log4j.rootCategory=<log_level>,<output_format>
Specifies the log level of a message. The following list displays the possible values in the increasing order of priority:
If the value is set to OFF, logging is disabled. If the value is set to any other value, logging is enabled.
Default: INFO
Specifies how a log message is displayed. You can display a log message on a console, or store it in a file, or both.
Default: SvrFileAppender
For example, if the log level is INFO and you want to display a log message on a console and store it in a file, use the following command:
log4j.rootCategory=INFO,SvrConsoleAppender,SvrFileAppender
| Copyright © 2012 CA. All rights reserved. |
|