Example: Change the location of the activity log

Change the location of the activity log by modifying the serviceLog attribute. The RASLoggingService object contains the serviceLog attribute.

The following example modifies the serviceLog attribute...

Using Jacl...

set dmgr1 [$AdminConfig getid /Server:dmgr/]
set rls [$AdminConfig list RASLoggingService $dmgr1]
set logFile [list name \${LOG_ROOT}/newlog.log]
set logAttr [list $logFile]
set attr [list [list serviceLog $logAttr]]
$AdminConfig modify $rls $attr

Using Jython

dmgr1 = AdminConfig.getid('/Server:dmgr/')
rls = AdminConfig.list('RASLoggingService', dmgr1)
logFile = ['name', '\${LOG_ROOT}/newlog.log']
logAttr = [logFile]
attr = [['serviceLog', logAttr]]
AdminConfig.modify(rls, attr)