Enum LoggingSystemProperty

    • Enum Constant Detail

      • GC_REUSABLE_MESSAGE_MAX_SIZE

        public static final LoggingSystemProperty GC_REUSABLE_MESSAGE_MAX_SIZE
        Property to override the maximum size of the StringBuilder instances used in ringbuffer log events to store the contents of reusable messages. After delivering messages above this size to appenders, the StringBuilder is trimmed to this maximum size. The default value is 518 which allows the StringBuilder to resize three times from its initial size.
      • THREAD_LOCALS_ENABLE

        public static final LoggingSystemProperty THREAD_LOCALS_ENABLE
        Property to override the use of thread-local values for garbage-free logging.
        See Also:
        LOG4J2-1270
      • LOADER_IGNORE_THREAD_CONTEXT_LOADER

        public static final LoggingSystemProperty LOADER_IGNORE_THREAD_CONTEXT_LOADER
        Property to ignore the thread context ClassLoader when set to true.
        See Also:
        LoaderUtil
      • LOADER_FORCE_THREAD_CONTEXT_LOADER

        public static final LoggingSystemProperty LOADER_FORCE_THREAD_CONTEXT_LOADER
        Property to force use of the thread context ClassLoader.
        See Also:
        LoaderUtil
      • LOGGER_MAP_MESSAGE_JSON_FORMATTER_MAX_DEPTH

        public static final LoggingSystemProperty LOGGER_MAP_MESSAGE_JSON_FORMATTER_MAX_DEPTH
        Property to override the default maximum nesting depth of map messages to format in JSON output. The default value is 8.
      • STATUS_MAX_ENTRIES

        public static final LoggingSystemProperty STATUS_MAX_ENTRIES
        Property that can be configured with the maximum number of status data entries to keep queued. Once the limit is reached, older entries will be removed as new entries are added. The default value is 200.
      • STATUS_DATE_FORMAT

        public static final LoggingSystemProperty STATUS_DATE_FORMAT
        Property that can be configured with a date-time format string to use as the format for timestamps in the status logger output. See SimpleDateFormat for supported formats.
      • STATUS_LOGGER_DEBUG

        public static final LoggingSystemProperty STATUS_LOGGER_DEBUG
        Property to enable TRACE-level debug logging in the Log4j system itself.

        If property is either defined empty or its value equals to true (ignoring case), all internal logging will be printed to the console. The presence of this system property overrides any value set in the configuration's <Configuration status="<level>" ...> status attribute.

      • THREAD_CONTEXT_MAP_ENABLED

        public static final LoggingSystemProperty THREAD_CONTEXT_MAP_ENABLED
        Property to control whether ThreadContext stores map data. If set to true, then the thread context map will be disabled.
      • THREAD_CONTEXT_STACK_ENABLED

        public static final LoggingSystemProperty THREAD_CONTEXT_STACK_ENABLED
        Property to control whether ThreadContext stores stack data. If set to true, then the thread context stack will be disabled.
      • THREAD_CONTEXT_ENABLE

        public static final LoggingSystemProperty THREAD_CONTEXT_ENABLE
        Property to control whether ThreadContext stores any data. If set to true, then the thread context map and stack will be disabled.
      • THREAD_CONTEXT_INITIAL_CAPACITY

        public static final LoggingSystemProperty THREAD_CONTEXT_INITIAL_CAPACITY
        Property to override the initial capacity of the thread context map. The default value is 16.
      • THREAD_CONTEXT_GARBAGE_FREE_ENABLED

        public static final LoggingSystemProperty THREAD_CONTEXT_GARBAGE_FREE_ENABLED
        Property to override whether to use a garbage-free implementation of ThreadContextMap.
      • UNBOX_RING_BUFFER_SIZE

        public static final LoggingSystemProperty UNBOX_RING_BUFFER_SIZE
        Property to override the default ringbuffer size used in Unbox. The default value is 32.
      • IS_WEBAPP

        public static final LoggingSystemProperty IS_WEBAPP
        Property to override webapp detection. Without this property, the presence of the Servlet interface (from either javax or jakarta) is checked to see if this is a webapp.
    • Method Detail

      • values

        public static LoggingSystemProperty[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (LoggingSystemProperty c : LoggingSystemProperty.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static LoggingSystemProperty valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null