java.lang.Object | |
↳ | com.microstrategy.utils.log.MSTRLog |
This is the logging infrastructure for the Java Web API. It can be used to turn on or off logging in the API by severity of message to be logged.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static boolean |
getDebugMonitorStatus()
Returns true if logging to the platform-dependent debug monitor is active, false if it is not.
| ||||||||||
static boolean |
getErrorLogStatus()
Returns true if error logging is on, and false if it is not.
| ||||||||||
static String |
getLogFile()
Returns the filename of the logfile that is currently set.
| ||||||||||
static int |
getPerformanceLogStatus()
Returns the current status of performance logging.
| ||||||||||
static boolean |
getTraceLogStatus()
Returns true if trace logging is on, and false if it is not.
| ||||||||||
static boolean |
getWarningLogStatus()
Returns true if warning logging is on, and false if it is not.
| ||||||||||
static void |
logError(String componentInfo, String errorMsg)
Logs an error to the log file if logging is turned on for errors.
| ||||||||||
static void |
logPerformance(int _perfLogLevel, String componentInfo, String perfMsg)
Logs a performance message to the logfile if performance logging is turned on.
| ||||||||||
static void |
logTrace(String componentInfo, String traceMsg)
Logs a tracing message to the log file if tracing is turned on.
| ||||||||||
static void |
logWarning(String componentInfo, String warnMsg)
Logs a warning message to the logfile if it is turned on.
| ||||||||||
static void |
setAllLogging(boolean isOn)
Sets the logging for all events either on or off.
| ||||||||||
static void |
setDebugMonitor(boolean isOn)
Enables logging to a "debug monitor".
| ||||||||||
static void |
setErrorLog(boolean isOn)
Sets the logging setting for the logging of errors.
| ||||||||||
synchronized static void |
setLogFile(String fileName)
Sets the current log file to the filename specified and closes the previous
logfile, if it was open.
| ||||||||||
static void |
setPerformanceLog(int perfLogLevel)
Sets the logging setting for the logging of performance data.
| ||||||||||
static void |
setTraceLog(boolean isOn)
Sets trace logging to either on or off.
| ||||||||||
static void |
setWarningLog(boolean isOn)
Sets warning logging to either on or off.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Returns true if logging to the platform-dependent debug monitor is active, false if it is not.
Returns true if error logging is on, and false if it is not.
Returns the filename of the logfile that is currently set. Returns null if no filename is set.
Returns the current status of performance logging.
EnumPerformanceLogLevel
.
Returns true if trace logging is on, and false if it is not.
Returns true if warning logging is on, and false if it is not.
Logs an error to the log file if logging is turned on for errors.
componentInfo | The name of the function/class that the error occurred in. |
---|---|
errorMsg | The text of the error |
Logs a performance message to the logfile if performance logging is turned on.
_perfLogLevel | The level of the message being logged, from EnumPerformanceLogLevel . |
---|---|
componentInfo | The name of the function/class that the warning occurred in. |
perfMsg | The text of the performance message. |
Logs a tracing message to the log file if tracing is turned on.
componentInfo | The name of the function/class that the trace occurred in. |
---|---|
traceMsg | The text of the trace. |
Logs a warning message to the logfile if it is turned on.
componentInfo | The name of the function/class that the warning occurred in. |
---|---|
warnMsg | The text of the warning |
Sets the logging for all events either on or off.
isOn | true if logging for all events should be on, false if it should be off. |
---|
Enables logging to a "debug monitor". This will vary from platform to platform, but for Windows NT this will be the Debug Monitor which traps calls to the Win32 API: OutputDebugString. Creation date: (9/20/00 4:00:05 PM)
isOn | if true, output for tracing, error, etc should be directed to a debug monitor. |
---|
Sets the logging setting for the logging of errors.
isOn | true if error logging should be on, false if it should be turned off. |
---|
Sets the current log file to the filename specified and closes the previous logfile, if it was open.
fileName | The fileName (with path if necessary) to use for logging. |
---|
Sets the logging setting for the logging of performance data.
perfLogLevel | true if performance logging should be on, false if it should be turned off. |
---|
Sets trace logging to either on or off.
isOn | true if trace logging should be turned on, false if it should be turned off. |
---|
Sets warning logging to either on or off.
isOn | true if warning logging should be turned on, false if it should be turned off. |
---|