Package 

Class LoggerImpl

    • Method Detail

      • createChildLogger

         Logger createChildLogger(String name)

        Create a 'child' logger which derives from this one. The child loggerwill share the same log level setting as this one and it will inheritthis logger's LogContext

      • setLevel

         void setLevel(Level level)

        Set logging level for all handlers to level

        Parameters:
        level - the level to set for all logger handlers
      • setLevelAll

         void setLevelAll()

        Set logging level for all handlers to ALL (allow all log messages)

      • setLevelDebug

         void setLevelDebug()

        Set logging level for all handlers to DEBUG

      • setLevelError

         void setLevelError()

        Set logging level for all handlers to ERROR

      • setLevelInfo

         void setLevelInfo()

        Set logging level for all handlers to INFO

      • setLevelOff

         void setLevelOff()

        Set logging level for all handlers to OFF (allow no log messages)

      • setLevelTrace

         void setLevelTrace()

        Set logging level for all handlers to TRACE

      • setLevelWarn

         void setLevelWarn()

        Set logging level for all handlers to WARNING

      • isTraceEnabled

         boolean isTraceEnabled()

        Check if a message with a TRACE level would actually be logged by thislogger.

      • trace

         void trace(Object msg)

        Log a TRACE message.

        If the logger is currently enabled for the TRACE messagelevel then the given message is forwarded to all theregistered output Handler objects.

        Parameters:
        msg - The message to log
      • trace

         void trace(Supplier<String> msgSupplier)

        Log a TRACE message. Only invokes the given supplierif the TRACE level is currently loggable.

        Parameters:
        msgSupplier - a Supplier which will return thelog mesage when invoked
      • isDebugEnabled

         boolean isDebugEnabled()

        Check if a message with a DEBUG level would actually be logged by thislogger.

      • debug

         void debug(Object msg)

        Log a DEBUG message.

        If the logger is currently enabled for the DEBUG messagelevel then the given message is forwarded to all theregistered output Handler objects.

        Parameters:
        msg - The message to log
      • debug

         void debug(Supplier<String> msgSupplier)

        Log a DEBUG message. Only invokes the given supplierif the DEBUG level is currently loggable.

        Parameters:
        msgSupplier - a Supplier which will return thelog mesage when invoked
      • isInfoEnabled

         boolean isInfoEnabled()

        Check if a message with an INFO level would actually be logged by thislogger.

      • info

         void info(Object msg)

        Log an INFO message.

        If the logger is currently enabled for the INFO messagelevel then the given message is forwarded to all theregistered output Handler objects.

        Parameters:
        msg - The message to log
      • info

         void info(Supplier<String> msgSupplier)

        Log an INFO message. Only invokes the given supplierif the INFO level is currently loggable.

        Parameters:
        msgSupplier - a Supplier which will return thelog mesage when invoked
      • isWarnEnabled

         boolean isWarnEnabled()

        Check if a message with a WARN level would actually be logged by thislogger.

      • warn

         void warn(Object msg)

        Log a WARN message.

        If the logger is currently enabled for the WARN messagelevel then the given message is forwarded to all theregistered output Handler objects.

        Parameters:
        msg - The message to log
      • warn

         void warn(Supplier<String> msgSupplier)

        Log a WARN message. Only invokes the given supplierif the WARN level is currently loggable.

        Parameters:
        msgSupplier - a Supplier which will return thelog mesage when invoked
      • warn

         void warn(Object msg, Throwable t)

        Log a message, with associated Throwable information.

        Parameters:
        msg - The message to log
        t - Throwable associated with log message.
      • error

         void error(Object msg)

        Log a ERROR message.

        If the logger is currently enabled for the ERROR messagelevel then the given message is forwarded to all theregistered output Handler objects.

        Parameters:
        msg - The message to log
      • error

         void error(Supplier<String> msgSupplier)

        Log an ERROR message. Only invokes the given supplierif the ERROR level is currently loggable.

        Parameters:
        msgSupplier - a Supplier which will return thelog mesage when invoked
      • error

         void error(Object msg, Throwable t)

        Log a message, with associated Throwable information.

        Parameters:
        msg - The message to log
        t - Throwable associated with log message.
      • addContext

         void addContext(Map<String, String> addedContext)

        Add additional log context to this logger

        Parameters:
        addedContext - a map of key, value pairs of the key namesand values to add
      • addContext

         void addContext(String key, String value)

        Add additional log context to this logger

        Parameters:
        key - the context key
        value - the context value