Class Log4jLoggingSystem

  • All Implemented Interfaces:
    LoggingSystem

    @Singleton
    @Requires(classes=org.apache.logging.log4j.core.config.Configurator.class)
    @Internal
    public class Log4jLoggingSystem
    extends java.lang.Object
    implements LoggingSystem
    An implementation of LoggingSystem that works with Log4j.
    Since:
    2.2.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void setLogLevel​(java.lang.String name, LogLevel level)
      Set the log level for the logger found by name (or created if not found).
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Log4jLoggingSystem

        public Log4jLoggingSystem()
    • Method Detail

      • setLogLevel

        public void setLogLevel​(java.lang.String name,
                                LogLevel level)
        Description copied from interface: LoggingSystem
        Set the log level for the logger found by name (or created if not found).
        Specified by:
        setLogLevel in interface LoggingSystem
        Parameters:
        name - the logger name
        level - the log level to set on the named logger