java.lang.Object
com.ibm.jvm.Log
The
Log class contains methods for controlling system log options
This class cannot be instantiated.-
Method Summary
Modifier and TypeMethodDescriptionstatic StringQuery the log options.static intSetOptions(String options) Set the log options.
-
Method Details
-
QueryOptions
Query the log options. Returns a String representation of the log options.- Returns:
- The current log options
- Throws:
SecurityException- if there is a security manager and it doesn't allow the checks required to query the log settings
-
SetOptions
Set the log options. Use the same syntax as the -Xsyslog command-line option, with the initial -Xsyslog: omitted.- Parameters:
options- The command line log flags.- Returns:
- status 0 on success otherwise a RuntimeException is thrown
- Throws:
RuntimeException- if there is a problem setting the log optionsSecurityException- if there is a security manager and it doesn't allow the checks required to change the log settings
-