Controlling the Size of Files Specified in log4j.properties
It is possible to configure the size of the files (cs_server.out, *.log) specified in your log4j.properties file using to parameters. MaxFileSize controls the maximum file size. After the value specified is reached the data rolls over to a new file. MaxBackupIndex controls the maximum number of rollover files.
To manipulate the settings in your log4j log file
|
1.
|
Navigate to <TDV_install_dir>/conf/server/log4j.properties. |
|
2.
|
Locate the file for which you want to control the size. |
|
3.
|
Edit the following lines: |
log4j.appender.MONITOR_STDOUT.MaxFileSize=10000KB
log4j.appender.MONITOR_STDOUT.MaxBackupIndex=100
|
5.
|
Restart the TDV Server. |