This class provides logging functionality for FlowPDF.
This package is being loaded at the beginning of FlowPDF execution behind the scene.
It is required to set up logging before other components are initialized.
Logger is retrieving through run context current debug level from configuration.
To enable this mechanics you need to add B Provides error output. The purpose is to have the error messages at any defined logging level. debugLevel property value is not taken into account in this case. Provides standard output. This is default level. debugLevel property should be set to 0. Provides the same output from INFO level + debug output. debugLevel property should be set to 1. Provides the same output from DEBUG level + TRACE output. debugLevel property should be set to 2. Supported debug levels:
Type | Name and description |
---|---|
static int |
LOG_DEBUG Provides the same output from INFO level + debug output. |
static int |
LOG_ERROR Provides error output. |
static int |
LOG_INFO Provides standard output. |
static int |
LOG_TRACE Provides the same output from DEBUG level + TRACE output. |
static int |
LOG_WARNING |
Constructor and description |
---|
Log
(java.util.Map<java.lang.String, java.lang.String> initArgs = [:]) Constructor |
Type Params | Return Type | Name and description |
---|---|---|
|
static void |
addMaskedValue(java.lang.String stringToMask) |
|
void |
debug(java.lang.Object... messages) |
|
void |
error(java.lang.Object... messages) Add a message with severity 'error' to the log |
|
void |
errorDiag(java.lang.Object... messages) |
|
java.lang.String |
getLevelName(java.lang.Integer level) |
|
int |
getLogLevel() Returns current log level. |
|
void |
info(java.lang.Object... messages) |
|
void |
infoDiag(java.lang.Object... messages) |
|
static void |
logDebug(java.lang.Object... messages) |
|
static void |
logError(java.lang.Object... messages) |
|
static void |
logErrorDiag(java.lang.Object... messages) |
|
static void |
logInfo(java.lang.Object... messages) |
|
static void |
logInfoDiag(java.lang.Object... messages) |
|
static void |
logTrace(java.lang.Object... messages) |
|
static void |
logWarnDiag(java.lang.Object... messages) |
|
static void |
logWarning(java.lang.Object... messages) |
|
static java.lang.String |
replaceMasked(java.lang.String logString) |
|
static int |
sanitizeLogLevel(java.lang.Object level) |
|
static void |
setDefaultLogLevel(java.lang.Object level) Sets a log level for all new instancews and the predefined static instance |
|
static void |
setDefaultLogToProperty(java.lang.String logProperty) Sets a property where the copy of log will be stored for a static instance |
|
void |
setLogLevel(java.lang.Object level) Sets new log level for this instance |
|
void |
setLogToProperty(java.lang.String logProperty) Sets a property where the copy of log will be stored for an instance |
|
void |
trace(java.lang.Object... messages) |
|
void |
warnDiag(java.lang.Object... messages) |
|
void |
warning(java.lang.Object... messages) |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Provides the same output from INFO level + debug output.
Provides error output. The purpose is to have the error messages at any defined logging level.
Provides standard output. This is default level.
Provides the same output from DEBUG level + TRACE output.
Constructor
initArgs
- map with a 'logLevel' keyAdd a message with severity 'error' to the log
Returns current log level.
Sets a log level for all new instancews and the predefined static instance
level
- new log level. Value will be parsed as integerSets a property where the copy of log will be stored for a static instance
logProperty
- path to the CloudBees CD propertySets new log level for this instance
level
- new log level. Value will be parsed as integerSets a property where the copy of log will be stored for an instance
logProperty
- path to the CloudBees CD propertyGroovy Documentation