WLST - Diagnostic

> Procedural Languages > Weblogic Scripting Tool (WLST)

1 - 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() 

2 - Logger

How to enable logger when using wlst command, such as migrateSecurityStore

  • Coppy a logging.propertie file from a Java installation to WLST_HOME\wlserver_10.3\common\bin
  • Modify: WLST_HOME\wlserver_10.3\common\bin\wlst.cmd in order to add the -Djava.util.logging.config.file argument.
SET JVM_ARGS=-Dprod.props.file="%WL_HOME%\.product.properties" %WLST_PROPERTIES% %MEM_ARGS% %CONFIG_JVM_ARGS% -Djava.util.logging.config.file=%~dp0\logging.properties

More: Java - java.util.logging

Advertising

3 - Documentation / Reference

lang/wlst/diagnostic.txt · Last modified: 2018/03/26 10:29 by gerardnico