Class TweakLogger

  • All Implemented Interfaces:

    
    public class TweakLogger
    
                        
    Since:

    2022-10-27

    Author:

    trydofor

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      TweakLogger()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      static void initGlobal(LoggingSystem system, LoggerGroups groups, LogLevel core)
      static LogLevel getCoreLevel() trace=true debug=true When the debug mode is enabled, a selection of core loggers (embedded container, Hibernate, and Spring Boot) are configured to output more information.
      static void asCoreLevel(@NotNull() String name)
      static void tweakGlobal(@Nullable() LogLevel level)
      static void tweakGlobal(@NotNull() String name, @Nullable() LogLevel level)
      static void tweakGlobal(@NotNull() String name, @Nullable() LogLevel level, boolean cache)
      static void resetGlobal(@NotNull() String name)
      static void resetGlobal()
      static LogLevel globalLevel(@NotNull() String name)
      static void tweakThread(@Nullable() LogLevel level) Set the new log level for root, but if level is null or OFF, reset to the original level.
      static void tweakThread(@NotNull() String name, @Nullable() LogLevel level) Set the new log level for logger, but if level is null or OFF, reset to the original level.
      static void resetThread()
      static LogLevel threadLevel()
      static LogLevel currentLevel(@NotNull() String name)
      • Methods inherited from class java.lang.Object

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

      • TweakLogger

        TweakLogger()
    • Method Detail

      • initGlobal

         static void initGlobal(LoggingSystem system, LoggerGroups groups, LogLevel core)
      • getCoreLevel

         static LogLevel getCoreLevel()

        trace=true debug=true When the debug mode is enabled, a selection of core loggers (embedded container, Hibernate, and Spring Boot) are configured to output more information. Enabling the debug mode does not configure your application to log all messages with DEBUG level.

      • tweakGlobal

         static void tweakGlobal(@Nullable() LogLevel level)
      • tweakGlobal

         static void tweakGlobal(@NotNull() String name, @Nullable() LogLevel level)
      • tweakGlobal

         static void tweakGlobal(@NotNull() String name, @Nullable() LogLevel level, boolean cache)
      • tweakThread

         static void tweakThread(@Nullable() LogLevel level)

        Set the new log level for root, but if level is null or OFF, reset to the original level.

      • tweakThread

         static void tweakThread(@NotNull() String name, @Nullable() LogLevel level)

        Set the new log level for logger, but if level is null or OFF, reset to the original level. tweak root level if the name is ROOT or empty.

      • threadLevel

        @Nullable() static LogLevel threadLevel()