Saturday, August 10, 2013

Redirecting JVM Output to Server Logging Destinations

The JVM in which a WebLogic Server instance runs, sends messages to standard error and standard out. Server as well as application code write directly to these streams instead of using the logging mechanism. Through a configuration option, you can redirect the JVM output to all the registered log destinations, like the server terminal console and log file. When enabled, a log entry appears as a message of NOTICE severity. Redirecting the JVM output does not capture output from native code, for example thread dumps from the JVM.
1)To redirect the JVM standard out messages:
When you start the Administration Server, include the following Java option in the weblogic.Server command:
-Dweblogic.log.RedirectStdoutToServerLogEnabled=true
2)Redirecting Stdout to Server Logging Destinations
C:\>java weblogic.WLST
wls:/offline> connect(‘username’,'password’)
wls:/mydomain/serverConfig> edit()
wls:/mydomain/edit> startEdit()
wls:/mydomain/edit !> cd(“Servers/myserver/Log/myserver”)
wls:/mydomain/edit/Servers/myserver/Log/myserver !> cmo.setRedirectStdoutToServerLogEnabled(true)
wls:/mydomain/edit/Servers/myserver/Log/myserver !> save()
wls:/mydomain/edit/Servers/myserver/Log/myserver !> activate()

1 comment:

  1. Gambling house opening in Las Vegas - JTM Hub
    The Gambling house opened in 1996 in the 여주 출장마사지 The casino in Las Vegas 경상남도 출장마사지 reopened 포천 출장샵 in 충청남도 출장마사지 2020 and includes 상주 출장안마 the famous Treasure Island, which opened

    ReplyDelete