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.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()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
fixCorruptedLogFile(java.lang.String logFileName)
static java.lang.String
getDateTime(long millisec)
static Logger
getLogger(java.lang.String loggerName)
static java.lang.String
getStackTrace(java.lang.Throwable e)
static boolean
getSuppressNextErrorLog()
static void
initLogger(Logger logger)
static Logger
initLogger(java.lang.String loggerName)
static void
setSuppressNextErrorLog(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
-
-