Package org.cdlib.mrt.log.utility
Class Log4j2Util
java.lang.Object
org.cdlib.mrt.log.utility.Log4j2Util
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.logging.log4j.LoggergetLoggerResource(String logConfigName) static Stringstatic voidsetLoggerLevel(String loggerName, String levelS) static voidsetLoggerLevel(String loggerName, org.apache.logging.log4j.Level level) static voidsetRootLevel(String levelS) static voidsetRootLevel(org.apache.logging.log4j.Level level) static voidwhichLog4j2(String header)
-
Constructor Details
-
Log4j2Util
public Log4j2Util()
-
-
Method Details
-
setRootLevel
- Throws:
TException
-
setRootLevel
- Throws:
TException
-
setLoggerLevel
- Throws:
TException
-
setLoggerLevel
public static void setLoggerLevel(String loggerName, org.apache.logging.log4j.Level level) throws TException - Throws:
TException
-
getRootLevel
- Throws:
TException
-
getLoggerResource
public static org.apache.logging.log4j.Logger getLoggerResource(String logConfigName) throws Exception - Throws:
Exception
-
whichLog4j2
-