The following list provides examples of using the pdm_log4j_config utility:
For example, set all of the loggers configured in Support Automation to a level of DEBUG:
pdm_log4j_config -f SA -a -l DEBUG
For example, set the logger for the pdm_rpc package to DEBUG using one of the following code samples:
pdm_log4j_config -f SDM_RPC -n pdm_rpc -l DEBUG
pdm_log4j_config -f SDM_RPC -n com.ca.ServicePlus.pdm_rpc -l DEBUG
For example, set the maximum number of files for all appenders to 9.
pdm_log4j_config -f REST -a -i 9
For example, set the maximum number of files for bop_logging to 7.
pdm_log4j_config -f SDM_WEB -n bop_logging -i 7
For example, set the maximum size of files for all appenders to 9 MB.
pdm_log4j_config -f REST -a -s 9MB
For example, set the maximum size of files for bop_logging to 7 MB.
pdm_log4j_config -f SDM_WEB -n bop_logging -s 7MB
For example, set the log level threshold to DEBUG.
pdm_log4j_config -f SA -a -t DEBUG
Note: The -t parameter log level threshold overrides the -l parameter log level. If you modify the log level and the threshold level, the DEBUG logs from the servlet do not appear in the file.
For example, set the log level threshold to WARN.
pdm_log4j_config -f SDM_WEB -n bop_logging -t WARN
pdm_log4j_config -f REST -d
Important! Use -l, -i, -s, and -t variables together with one of the -a or -n options, Do not use both the options. The -f option is mandatory. The -h and -d options are mutually exclusive to any other option.
Copyright © 2013 CA.
All rights reserved.
|
|