Package org.apache.logging.log4j.status
Class StatusLogger.Config
- java.lang.Object
-
- org.apache.logging.log4j.status.StatusLogger.Config
-
- Enclosing class:
- StatusLogger
public static final class StatusLogger.Config extends Object
Holder for user-providedStatusLoggerconfigurations.- Since:
- 2.23.0
-
-
Constructor Summary
Constructors Constructor Description Config(boolean debugEnabled, int bufferCapacity, DateTimeFormatter instantFormatter)Constructs an instance using the given properties.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StatusLogger.ConfiggetInstance()Gets the static instance.
-
-
-
Constructor Detail
-
Config
public Config(boolean debugEnabled, int bufferCapacity, @Nullable DateTimeFormatter instantFormatter)Constructs an instance using the given properties. Users should not create new instances, but usegetInstance()instead!- Parameters:
debugEnabled- the value of the "log4j2.debug" propertybufferCapacity- the value of the "log4j2.status.entries" propertyinstantFormatter- the value of the "log4j2.StatusLogger.dateFormat" property
-
-
Method Detail
-
getInstance
public static StatusLogger.Config getInstance()
Gets the static instance.- Returns:
- a singleton instance
-
-