Modify a JVM log rotation policy
Configure the JVM log rotation policy settings for JVM logs...
Using Jacl
set xserver [$AdminConfig getid /Cell:cell/Node:node/Server:server/] set log [$AdminConfig showAttribute $xserver outputStreamRedirect] ### ### or ### ### set log [$AdminConfig showAttribute $server errorStreamRedirect] ### ### List the current values of the stream log... $AdminConfig show $log ### Modify the rotation policy for the stream log... $AdminConfig modify $log {{rolloverSize 2}} ### Set the rotation policy to manage itself. Based on ### the age of the file with the rollover algorithm loaded ### at midnight, and the log file rolling over every 12 hours $AdminConfig modify $log {{rolloverType TIME} {rolloverPeriod 12} {baseHour 24}} ### Set the log file to roll over based on both time and size $AdminConfig modify $log {{rolloverType BOTH} {rolloverSize 2} {rolloverPeriod 12} {baseHour 24}} $AdminConfig save
Using Jython
server = AdminConfig.getid('/Cell:cell/Node:node/Server:server/') print server