This library contains log utilities and helper functions for error
reporting. It contains APIs to log the at debug, info, and error
levels.
The logs configuration is in the probeMgrLog4j.properties file. By
default, the messages from the log level and up are written to
probeMgr-patternsDebug.log in the discovery probe log folder. The info
and error messages are also displayed on the console.
The first set issues the concatenation of all its string arguments in
the appropriate log level. The second does the same along with the most
recent thrown exception's stack trace. This facilitates understanding the
cause of the exception.
|
|
|
|
|
|
|
debug(msg,
*args)
Logs a debug message if debug messages are enabled. |
source code
|
|
|
info(msg,
*args)
Logs an info level message if info messages are enabled. |
source code
|
|
|
warn(msg,
*args)
Logs a warning message if warn messages are enabled. |
source code
|
|
|
|
|
|
boolean
|
|
boolean
|
isInfoEnabled()
Checks whether INFO messages should be written to the log file,
acording to The method checks in thel log4j properties file. |
source code
|
|
|
|
|
|
string
|
|
|
debugException(msg,
*args)
Writes the full exception stack trace from both Java and Jython to
the log at the debug level. |
source code
|
|
|
infoException(msg,
*args)
Writes the full exception stack trace from both Java and Jython to
the log at the info level. |
source code
|
|
|
warnException(msg,
*args)
Writes the full exception stack trace from both Java and Jython to
the log at the warn level. |
source code
|
|
|
getCauseMessagesFromJavaStacktrace(stacktrace) |
source code
|
|
|
warnCompactException(msg,
*args)
Warns message along with exception details that are messages of cases |
source code
|
|
|
errorException(msg,
*args)
Writes the full exception stack trace from both Java and Jython to
the log at the error level. |
source code
|
|
|
fatalException(msg,
*args)
Writes the full exception stack trace from both Java and Jython to
the log at the fatal level. |
source code
|
|
|
|
|
|
|
|
|
|
|
__reportWarning(errorCode,
params,
errmsg,
framework) |
source code
|
|
|
__reportError(errorCode,
params,
errmsg,
framework) |
source code
|
|
|
|