Class DefautlLoggingManager

java.lang.Object
software.amazon.lambda.powertools.logging.internal.DefautlLoggingManager
All Implemented Interfaces:
LoggingManager

public class DefautlLoggingManager extends Object implements LoggingManager
When no LoggingManager is found, setting a default one with no action on logging implementation Powertools cannot change the log level based on the environment variable, will use the logger configuration
  • Constructor Details

    • DefautlLoggingManager

      public DefautlLoggingManager()
  • Method Details

    • setLogLevel

      public void setLogLevel(org.slf4j.event.Level logLevel)
      Description copied from interface: LoggingManager
      Change the log Level of all loggers (named and root)
      Specified by:
      setLogLevel in interface LoggingManager
      Parameters:
      logLevel - the log Level (slf4j) to apply
    • getLogLevel

      public org.slf4j.event.Level getLogLevel(org.slf4j.Logger logger)
      Description copied from interface: LoggingManager
      Retrieve the log Level of a specific logger
      Specified by:
      getLogLevel in interface LoggingManager
      Parameters:
      logger - the logger (slf4j) for which to retrieve the log Level
      Returns:
      the Level (slf4j) of this logger. Note that SLF4J only support ERROR, WARN, INFO, DEBUG, TRACE while some frameworks may support others (OFF, FATAL, ...)