Enum Class GlassFishLogManagerProperty

java.lang.Object
java.lang.Enum<GlassFishLogManagerProperty>
org.glassfish.main.jul.cfg.GlassFishLogManagerProperty
All Implemented Interfaces:
Serializable, Comparable<GlassFishLogManagerProperty>, java.lang.constant.Constable, LogProperty

public enum GlassFishLogManagerProperty extends Enum<GlassFishLogManagerProperty> implements LogProperty
Properties used directly by the GlassFishLogManager
Author:
David Matejcek
  • Enum Constant Details

    • KEY_ROOT_HANDLERS

      public static final GlassFishLogManagerProperty KEY_ROOT_HANDLERS
      Property key for a list of root handler implementations
    • KEY_USR_ROOT_LOGGER_LEVEL

      public static final GlassFishLogManagerProperty KEY_USR_ROOT_LOGGER_LEVEL
      Property key for a level of user root logger. User root loggers children can have own level.
    • KEY_SYS_ROOT_LOGGER_LEVEL

      public static final GlassFishLogManagerProperty KEY_SYS_ROOT_LOGGER_LEVEL
      Property key for a level of system root logger. System root loggers children are not configurable.
    • KEY_RELEASE_PARAMETERS_EARLY

      public static final GlassFishLogManagerProperty KEY_RELEASE_PARAMETERS_EARLY
      Property key for a boolean value enabling forgetting log record parameters right after the message is resolved. If false, parameters are set in the log record until the record is processed by a formatter which can still use them. However they can change their internal state while the record was waiting for processing in some of buffers.

      Releasing them when they are not used may help performance (depends on type of the load).

    • KEY_RESOLVE_LEVEL_WITH_INCOMPLETE_CONFIGURATION

      public static final GlassFishLogManagerProperty KEY_RESOLVE_LEVEL_WITH_INCOMPLETE_CONFIGURATION
      Property key for a boolean value enabling log record level resolution even when the logging is configured just partially. It can save some time and memory, on the other hand some verbose log records not passing currently set log levels will be lost (as in all releases before GlassFish 7)
  • Method Details

    • values

      public static GlassFishLogManagerProperty[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GlassFishLogManagerProperty valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getPropertyName

      public String getPropertyName()
      Specified by:
      getPropertyName in interface LogProperty
      Returns:
      a name of the property, used as a last part of property name in logging.properties
    • getPropertyFullName

      @Deprecated public String getPropertyFullName(Class<?> bussinessObjectClass)
      Deprecated.
      use getPropertyName(), this enum cannot relativize to a class.
      Description copied from interface: LogProperty
      Concatenates the Class.getName() with a dot and LogProperty.getPropertyName()
      Specified by:
      getPropertyFullName in interface LogProperty
      Returns:
      the same as getPropertyName()