Class Log4j2Util

java.lang.Object
org.cdlib.mrt.log.utility.Log4j2Util

public class Log4j2Util extends Object
  • Constructor Details

    • Log4j2Util

      public Log4j2Util()
  • Method Details

    • setRootLevel

      public static void setRootLevel(String levelS) throws TException
      Throws:
      TException
    • setRootLevel

      public static void setRootLevel(org.apache.logging.log4j.Level level) throws TException
      Throws:
      TException
    • setLoggerLevel

      public static void setLoggerLevel(String loggerName, String levelS) throws TException
      Throws:
      TException
    • setLoggerLevel

      public static void setLoggerLevel(String loggerName, org.apache.logging.log4j.Level level) throws TException
      Throws:
      TException
    • getRootLevel

      public static String getRootLevel() throws TException
      Throws:
      TException
    • getLoggerResource

      public static org.apache.logging.log4j.Logger getLoggerResource(String logConfigName) throws Exception
      Throws:
      Exception
    • whichLog4j2

      public static void whichLog4j2(String header)
    • useLog4j2

      public static void useLog4j2(String xmlPath)