Class LogIfLevelEnabled

  • public final class LogIfLevelEnabled
    extends java.lang.Object
    Wrapper for a commons-logging Log supporting configurable logging levels.
    Gary Russell
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  LogIfLevelEnabled.Level
      Logging levels.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void log​(java.util.function.Supplier<java.lang.CharSequence> messageSupplier)  
      void log​(java.util.function.Supplier<java.lang.CharSequence> messageSupplier, java.lang.Throwable thrown)  
      • Methods inherited from class java.lang.Object

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

      • LogIfLevelEnabled

        public LogIfLevelEnabled​(org.springframework.core.log.LogAccessor logger,
                                 LogIfLevelEnabled.Level level)
    • Method Detail

      • log

        public void log​(java.util.function.Supplier<java.lang.CharSequence> messageSupplier)
      • log

        public void log​(java.util.function.Supplier<java.lang.CharSequence> messageSupplier,
                        java.lang.Throwable thrown)