- java.lang.Object
-
- com.ibm.jvm.Log
-
public class Log extends Object
TheLogclass contains methods for controlling system log options This class cannot be instantiated.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringQueryOptions()Query the log options.static intSetOptions(String options)Set the log options.
-
-
-
Method Detail
-
QueryOptions
public static String 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
public static int SetOptions(String options)
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
-
-