Software >> Middleware >> Weblogic >> How to define the file name and location for capturing messages sent to standard out and standard err

method #1 (to be verified)

If you want to keep a record of these messages, edit the WebLogic Server script so that the JAVA_OPTIONS variable specifies the following:

-Dweblogic.Stdout="stdout-filename"
-Dweblogic.Stderr="
stderr-filename"

 

method #2 (verified)

in the WebLogic Server start script, add the following before the code that checks for WLS_REDIRECT_LOG

WLS_REDIRECT_LOG=path-to-std-out

export WLS_REDIRECT_LOG