Coverage Summary for Class: AbstractLogger (net.sf.persism.logging)

Class Class, % Method, % Line, %
AbstractLogger 100% (1/1) 100% (3/3) 100% (5/5)


1 package net.sf.persism.logging; 2  3 /** 4  * @hidden 5  */ 6 public abstract sealed class AbstractLogger permits JulLogger, Log4j2Logger, Log4jLogger, Slf4jLogger { 7  8  protected final LogMode logMode; 9  protected final String logName; 10  11  protected AbstractLogger(LogMode logMode, String logName) { 12  this.logMode = logMode; 13  this.logName = logName; 14  } 15  16  public abstract boolean isDebugEnabled(); 17  18  public abstract void debug(Object message); 19  public abstract void debug(Object message, Object... params); 20  21  public abstract void info(Object message); 22  public abstract void info(Object message, Throwable t); 23  24  public abstract void warn(Object message); 25  26  public abstract void warn(Object message, Throwable t); 27  28  public abstract void error(Object message); 29  30  public abstract void error(Object message, Throwable t); 31  32  public final LogMode getLogMode() { 33  return logMode; 34  } 35  36  public final String getLogName() { 37  return logName; 38  } 39 }