Package com.microstrategy.utils.log
Class LoggerHelper
- java.lang.Object
-
- com.microstrategy.utils.log.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.StringENTERstatic java.lang.StringEXCEPTIONstatic java.lang.StringEXITstatic java.lang.StringNATIVE_BASEstatic java.lang.StringPROPERTYstatic java.lang.StringSTATISTICLog records marked with STATISTIC must also contain two parameters: the key and value of the custom statistic respectively.static java.lang.StringTHROWING
-
Constructor Summary
Constructors Constructor Description LoggerHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidfixCorruptedLogFile(java.lang.String logFileName)static java.lang.StringgetDateTime(long millisec)static LoggergetLogger(java.lang.String loggerName)static java.lang.StringgetStackTrace(java.lang.Throwable e)static booleangetSuppressNextErrorLog()static voidinitLogger(Logger logger)static LoggerinitLogger(java.lang.String loggerName)static voidsetSuppressNextErrorLog(boolean suppress)If set to true, the next error that would normally be logged in this thread is not logged.
-
-
-
Field Detail
-
NATIVE_BASE
public static final java.lang.String NATIVE_BASE
- See Also:
- Constant Field Values
-
EXCEPTION
public static final java.lang.String EXCEPTION
- See Also:
- Constant Field Values
-
ENTER
public static final java.lang.String ENTER
- See Also:
- Constant Field Values
-
EXIT
public static final java.lang.String EXIT
- See Also:
- Constant Field Values
-
THROWING
public static final java.lang.String THROWING
- See Also:
- Constant Field Values
-
PROPERTY
public static final java.lang.String PROPERTY
- See Also:
- Constant Field Values
-
STATISTIC
public static final java.lang.String STATISTIC
Log records marked with STATISTIC must also contain two parameters: the key and value of the custom statistic respectively.- See Also:
- Constant Field Values
-
-
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
-
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
-
-