Package de.galan.commons.logging
Class Slogr
java.lang.Object
de.galan.commons.logging.Slogr
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.slf4j.Loggerget()To be used to get the Slf4J Logger in a class, eg.
-
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 classSay.
-