Package de.galan.commons.logging
Class Logr
java.lang.Object
de.galan.commons.logging.Logr
Returns the Log4j2 logger for the calling class (for Slf4j use Slogr). Can be used to determine the Logger, reduces
errors when copy&paste.
Note: Compareable to Log4j2 LogManager.getLogger();
Note: Compareable to Log4j2 LogManager.getLogger();
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.logging.log4j.Loggerget()To be used to get the Log4j2 Logger in a class, eg.
-
Constructor Details
-
Logr
public Logr()
-
-
Method Details
-
get
public static org.apache.logging.log4j.Logger get()To be used to get the Log4j2 Logger in a class, eg.private final static Logger LOG = Logr.get();. To avoid the Logger declaration completely, use the classSay.
-