Class 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 Detail

      • Slogr

        public Slogr()
    • Method Detail

      • 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.