Class GlassFishLoggingConstants

java.lang.Object
org.glassfish.main.jul.cfg.GlassFishLoggingConstants

public class GlassFishLoggingConstants extends Object
Constants used to configure the Java Util Logging.

Always remember - you cannot switch the LogManager used in the JVM once any runtime touches the Logger class or the LogManager class. If you want to use GlassFishLogManager, you need to set the system property "java.util.logging.manager" to "org.glassfish.main.jul.GlassFishLogManager" before it happens.

Author:
David Matejcek
  • Field Details

    • CLASS_LOG_MANAGER_JUL

      public static final String CLASS_LOG_MANAGER_JUL
      Default JUL LogManager class name
      See Also:
    • CLASS_LOG_MANAGER_GLASSFISH

      public static final String CLASS_LOG_MANAGER_GLASSFISH
      GlassFish's JUL LogManager implementation class name
      See Also:
    • CLASS_INITIALIZER

      public static final String CLASS_INITIALIZER
      GlassFish's JUL LogManager initializer class name
      See Also:
    • CLASS_HANDLER_BLOCKING

      public static final String CLASS_HANDLER_BLOCKING
      Handler blocking processing of records until the log manager is reconfigured.
      See Also:
    • JVM_OPT_LOGGING_MANAGER

      public static final String JVM_OPT_LOGGING_MANAGER
      System property name defining LogManager implementation for the rest of the JVM runtime existence.
      See Also:
    • JVM_OPT_LOGGING_CFG_FILE

      public static final String JVM_OPT_LOGGING_CFG_FILE
      System property name defining property file which will be automatically loaded on startup. Usually it is named logging.properties
      See Also:
    • JVM_OPT_LOGGING_CFG_USE_DEFAULTS

      public static final String JVM_OPT_LOGGING_CFG_USE_DEFAULTS
      System property telling the GlassFishLogManager to use defaults if there would not be any logging.properties neither set by "java.util.logging.config.file" nor available on classpath.

      Defaults use the SimpleLogHandler and level INFO or level set by "java.util.logging.config.defaultLevel"

      See Also:
    • JVM_OPT_LOGGING_CFG_DEFAULT_LEVEL

      public static final String JVM_OPT_LOGGING_CFG_DEFAULT_LEVEL
      If the GlassFishLogManager would use defaults as configured by the "java.util.logging.config.useDefaults", this system property tells him to use this level and not the default INFO.
      See Also:
    • KEY_TRACING_ENABLED

      public static final String KEY_TRACING_ENABLED
      If this key is set to true, GJULE will print really detailed tracing info to the standard output
      See Also:
    • BYTES_PER_MEGABYTES

      public static final long BYTES_PER_MEGABYTES
      1 000 000
      See Also: