Package tilda.utils

Class LogUtil

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected static org.apache.logging.log4j.Level _originalLogLevel  
      protected static org.apache.logging.log4j.Logger LOG  
    • Constructor Summary

      Constructors 
      Constructor Description
      LogUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String logError​(org.apache.logging.log4j.Logger l, java.lang.String msg)  
      static void logThrowables​(org.apache.logging.log4j.Logger log, java.lang.Throwable T, int causeLevel)
      Logs the Throwable using the provided Logger, then logs the throwable causes up to causeLevel.
      static void resetLogLevel()  
      static void setLogLevel​(org.apache.logging.log4j.Level NewLevel)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOG

        protected static final org.apache.logging.log4j.Logger LOG
      • _originalLogLevel

        protected static org.apache.logging.log4j.Level _originalLogLevel
    • Constructor Detail

      • LogUtil

        public LogUtil()
    • Method Detail

      • setLogLevel

        public static void setLogLevel​(org.apache.logging.log4j.Level NewLevel)
      • resetLogLevel

        public static void resetLogLevel()
      • logThrowables

        public static final void logThrowables​(org.apache.logging.log4j.Logger log,
                                               java.lang.Throwable T,
                                               int causeLevel)
        Logs the Throwable using the provided Logger, then logs the throwable causes up to causeLevel. If causeLevel is 0, then no sub-causes are logged. If there are no sub-causes, then causeLevel is ignored.
        Parameters:
        log - the Logger to log the Throwable against, using catching()
        T - the Throwable to log
        causeLevel - the number of levels deep to also log the Throwable's sub causes if any.
      • logError

        public static java.lang.String logError​(org.apache.logging.log4j.Logger l,
                                                java.lang.String msg)