Class Slogr

java.lang.Object
de.galan.commons.logging.Slogr

public class Slogr extends Object
Returns the Slf4j logger for the calling class (for Log4j2 use Logr). Can be used to determine the Logger, reduces errors when copy&paste.
  • Constructor Details

    • Slogr

      public Slogr()
  • Method Details

    • get

      public static org.slf4j.Logger get()
      To be used to get the Slf4J Logger in a class, eg. private final static Logger LOG = Slogr.get();. To avoid the Logger declaration completely, use the class Say.