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.Logger
getLoggerResource
(String logConfigName) static String
static void
setLoggerLevel
(String loggerName, String levelS) static void
setLoggerLevel
(String loggerName, org.apache.logging.log4j.Level level) static void
setRootLevel
(String levelS) static void
setRootLevel
(org.apache.logging.log4j.Level level) static void
whichLog4j2
(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
-