Interface LoggingConfigurer

  • All Known Implementing Classes:
    Log4jConfigurer

    public interface LoggingConfigurer
    Simple interface for configuring logging levels.
    • Field Detail

      • NAMED_LEVELS

        static final String[] NAMED_LEVELS
    • Method Detail

      • configureAllLoggers

        void configureAllLoggers​(int newLevel)
        Set the logging level of all loggers.
        Throws:
        IllegalArgumentException - if newLevel is invalid
      • configureAllLoggers

        default void configureAllLoggers​(String newLevel)
        Set the logging level of all loggers using a named level.
        Throws:
        IllegalArgumentException - if newLevel is invalid
      • apply

        void apply()
        Apply pending changes to the configuration.