Skip to main content

I’m posting this more for quick reference than anything else =)

cd $ORACLE_HOME/common/bin
./wlst.sh

wls:/offline> connect()
Please enter your username [weblogic] :weblogic
Please enter your password [welcome1] :Welcome1
Please enter your server URL [t3://localhost:7001] :t3://oamadminserver.oracle.com:7001

To list the current log level:
wls:/oam_domain/serverConfig> listLoggers(pattern=”oracle.oam.*”,target=”oam_server1″)

To change the loglevel:
wls:/oam_domain/serverConfig> domainRuntime()
wls:/oam_domain/serverConfig> setLogLevel(logger=”oracle.oam”,level=”TRACE:1″, persist=”0″, target=”oam_server1″)

(persist makes that log level stay even after restart)

Log levels:

INCIDENT_ERROR:1 – SEVERE.intValue()+100
ERROR:1 – SEVERE (logs exceptions)
WARNING:1 – WARNING (logs exceptions)
NOTIFICATION:1 – INFO (default)
NOTIFICATION:16 – CONFIG
NOTIFICATION:32 – INFO and CONFIG
TRACE:1 – FINE (occasionally recommended in production environments)
TRACE:16 – FINER (not recommended in production environments)
TRACE:32 – FINEST (not recommended in production environments)