Class Log4jLoggingSystem

  • All Implemented Interfaces:
    io.micronaut.logging.LoggingSystem, ManagedLoggingSystem

    @Singleton
    @Requires(beans=LoggersEndpoint.class) @Requires(classes=org.apache.logging.log4j.core.LoggerContext.class)
    @Replaces(io.micronaut.logging.impl.Log4jLoggingSystem.class)
    public class Log4jLoggingSystem
    extends java.lang.Object
    implements ManagedLoggingSystem, io.micronaut.logging.LoggingSystem
    An implementation of ManagedLoggingSystem that works with logback.
    Since:
    2.2.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LoggerConfiguration getLogger​(java.lang.String name)
      Returns a LoggerConfiguration for the logger found by name (or created if not found).
      java.util.Collection<LoggerConfiguration> getLoggers()
      Returns all existing loggers.
      void setLogLevel​(java.lang.String name, io.micronaut.logging.LogLevel level)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface io.micronaut.logging.LoggingSystem

        refresh
    • Constructor Detail

      • Log4jLoggingSystem

        public Log4jLoggingSystem()