Package in.dragonbra.javasteam.util.log
Class LogManager
- java.lang.Object
-
- in.dragonbra.javasteam.util.log.LogManager
-
public class LogManager extends java.lang.Object- Since:
- 2018-03-02
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddListener(LogListener listener)Adds a log listener that will be notified of logging events.static LoggergetLogger(java.lang.Class<?> clazz)Gets theLoggerinstance of the specified class.static voidremoveListener(LogListener listener)Remove a log listener.
-
-
-
Method Detail
-
getLogger
public static Logger getLogger(java.lang.Class<?> clazz)
Gets theLoggerinstance of the specified class.- Parameters:
clazz- the class, must not be null.- Returns:
- the logger instance.
-
addListener
public static void addListener(LogListener listener)
Adds a log listener that will be notified of logging events. You can use theDefaultLogListenerthat prints logs to the standard output in a format similar to Log4j2- Parameters:
listener- the listener.
-
removeListener
public static void removeListener(LogListener listener)
Remove a log listener.- Parameters:
listener- the listener.
-
-