Package org.apache.logging.log4j.status
Class StatusLogger.Config
java.lang.Object
org.apache.logging.log4j.status.StatusLogger.Config
- Enclosing class:
- StatusLogger
Holder for user-provided
StatusLogger configurations.- Since:
- 2.23.0
-
Constructor Summary
ConstructorsConstructorDescriptionConfig(boolean debugEnabled, int bufferCapacity, @Nullable DateTimeFormatter instantFormatter) Constructs an instance using the given properties. -
Method Summary
-
Constructor Details
-
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 Details
-
getInstance
Gets the static instance.- Returns:
- a singleton instance
-