Previous Topic: pdm_logfile--Change stdlog Cutover SizeNext Topic: Utility Usage Examples


pdm_log4j_config Utility--Modify the log4j properties File

The pdm_log4j_config.pl utility lets you configure the log4j properties file of CA SDM, web components, PDM_RPC, Support Automation, Rest, and CMDB Visualizer. Execute the utility batch script that is based on your environment. For Windows, execute pdm_log4j_config from the command line. For UNIX, execute the pdm_log4j_config.sh file.

This command has the following format:

pdm_log4j_config -f <component> -d
pdm_log4j_config -h
pdm_log4j_config -f <component>  [-a | -n <name>] [-l <log level>] [I <max # of log files>] [-s <max size of log files>] [-t <log level threshold>]
-f

Specifies the log4j configuration of CA SDM or the component of CA SDM that you want to change. Enter one of the following values:

SDM_WEB, SDM_RPC, REST, SA, or Viz.

Note: Use the mandatory option along with the other options.

-d

Displays the current log4j.properties configuration.

-h

Displays help for the utility.

-a

Completes all changes to log4j.properties globally.

-n

Specifies that you only want to modify a specific class or package name.

Specify a specific class name, such as bop_logging, or a complete package name, such as com.ca.ServicePlus.

-l

Specifies the log level that you want to set.

Note: Specify the -a or -n option.

-i

Specifies the max file number index that you want to set.

Note: Specify the -a or -n option.

-s

Specifies the max file size that you want to set.

Note: Specify the -a or -n option.

Important! Change the appender in the log4j.properties file of Visualizer to Rolling File Appender before you execute the command with this parameter. If you do not change the appender, MaxFileSize generates logs in the same file.

-t

Specifies the log level threshold.

Note: Specify the -a or -n option.