Class JulLogger

java.lang.Object
ch.kk7.confij.logging.JulLogger
All Implemented Interfaces:
ConfijLogger

public class JulLogger
extends java.lang.Object
implements ConfijLogger
A logger which uses java.util.logging underneath, but allows for slf4j-like log message patterns. The only reason being that jul doesn't require a dependency: don't use it otherwise.
  • Nested Class Summary

    Nested Classes
    Modifier and Type Class Description
    static class  JulLogger.JulLogFactory  
  • Constructor Summary

    Constructors
    Constructor Description
    JulLogger()  
  • Method Summary

    Modifier and Type Method Description
    void debug​(java.lang.String message, java.lang.Object... attributes)  
    void error​(java.lang.String message, java.lang.Object... attributes)  
    void info​(java.lang.String message, java.lang.Object... attributes)  
    protected void log​(java.util.logging.Level level, java.lang.String message, java.lang.Object... attributes)  

    Methods inherited from class java.lang.Object

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

    • JulLogger

      public JulLogger()
  • Method Details

    • debug

      public void debug​(java.lang.String message, java.lang.Object... attributes)
      Specified by:
      debug in interface ConfijLogger
    • info

      public void info​(java.lang.String message, java.lang.Object... attributes)
      Specified by:
      info in interface ConfijLogger
    • error

      public void error​(java.lang.String message, java.lang.Object... attributes)
      Specified by:
      error in interface ConfijLogger
    • log

      protected void log​(java.util.logging.Level level, java.lang.String message, java.lang.Object... attributes)