Wednesday, July 13, 2011

WLST Eg: Redirecting Error and Debug Output to a File

Redirecting Error and Debug Output to a File
To redirect WLST information, error, and debug messages from standard out to a file, enter:

redirect(outputFile,[toStdOut])
stopRedirect()

This command also redirects the output of the dumpStack() and dumpVariables() commands.

For example, to redirect WLST output to the logs/wlst.log file under the directory from which you started WLST, enter the following command:

wls:/mydomain/serverConfig> redirect('./logs/wlst.log')

No comments:

Post a Comment