Class StatusLogger.Config

  • Enclosing class:
    StatusLogger

    public static final class StatusLogger.Config
    extends Object
    Holder for user-provided StatusLogger configurations.
    Since:
    2.23.0
    • 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 use getInstance() instead!
        Parameters:
        debugEnabled - the value of the "log4j2.debug" property
        bufferCapacity - the value of the "log4j2.status.entries" property
        instantFormatter - the value of the "log4j2.StatusLogger.dateFormat" property
    • Method Detail

      • getInstance

        public static StatusLogger.Config getInstance()
        Gets the static instance.
        Returns:
        a singleton instance