Here is an example of how to automatically increase the log level of a Siebel Component (in this example where SRBroker is used, restart of the component is needed).
Create the following 4 files. With IncreaseLogLevelForSRBroker.bat you increase the log level and with RestoreLogLevelForSRBroker.bat you restore the default values.
To increase the log level:
IncreaseLogLevelForSRBroker.bat:
cd "%HOMEDRIVE%%HOMEPATH%\desktop"
D:\sea\siebsrvr\BIN\srvrmgr /g vagdemo /e ent /u SADMIN /p SADMIN /i increase_log_level.txt
pause
increase_log_level.txt:
set server APPSRVR2
change evtloglvl %=4 for comp SRBroker
change param logflushfreq=1 for comp SRBroker
shutdown comp SRBroker
startup comp SRBroker
exit
To restore the log level:
RestoreLogLevelForSRBroker.bat:
cd "%HOMEDRIVE%%HOMEPATH%\desktop"
D:\sea\siebsrvr\BIN\srvrmgr /g vagdemo /e ent /u SADMIN /p SADMIN /i restore_log_level.txt
pause
restore_log_level.txt:
set server APPSRVR2
change evtloglvl %=1 for comp SRBroker
change param logflushfreq=0 for comp SRBroker
shutdown comp SRBroker
startup comp SRBroker
exit