Class LoggerHelper


  • public class LoggerHelper
    extends java.lang.Object
    Since:
    MicroStrategy Web 7.3.1 or earlier
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ENTER  
      static java.lang.String EXCEPTION  
      static java.lang.String EXIT  
      static java.lang.String NATIVE_BASE  
      static java.lang.String PROPERTY  
      static java.lang.String STATISTIC
      Log records marked with STATISTIC must also contain two parameters: the key and value of the custom statistic respectively.
      static java.lang.String THROWING  
    • Constructor Summary

      Constructors 
      Constructor Description
      LoggerHelper()  
    • Constructor Detail

      • LoggerHelper

        public LoggerHelper()
    • Method Detail

      • initLogger

        public static Logger initLogger​(java.lang.String loggerName)
      • getLogger

        public static Logger getLogger​(java.lang.String loggerName)
      • initLogger

        public static void initLogger​(Logger logger)
      • getStackTrace

        public static java.lang.String getStackTrace​(java.lang.Throwable e)
      • fixCorruptedLogFile

        public static void fixCorruptedLogFile​(java.lang.String logFileName)
      • getDateTime

        public static java.lang.String getDateTime​(long millisec)
        Since:
        MicroStrategy Web 8.0.0
      • removeThreadLocal

        public static void removeThreadLocal()
      • setSuppressNextErrorLog

        public static void setSuppressNextErrorLog​(boolean suppress)
        If set to true, the next error that would normally be logged in this thread is not logged.
        Since:
        MicroStrategy Web 9.0.0
      • getSuppressNextErrorLog

        public static boolean getSuppressNextErrorLog()
        Since:
        MicroStrategy Web 9.0.0