Module openj9.jvm
Package com.ibm.jvm

Class Log

java.lang.Object
com.ibm.jvm.Log

public class Log extends Object
The Log class contains methods for controlling system log options This class cannot be instantiated.
  • Method Details

    • 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 options
      SecurityException - if there is a security manager and it doesn't allow the checks required to change the log settings