Public Member Functions | |
LogParameterUtil (LogRecord currentLogRecord) | |
void | setCurrentLogRecord (LogRecord logRecord) |
List< Object > | getNonSpecialPropertiesMapParameters () |
long | extractLongProperty (String name, long defaultValue) |
String | extractStringProperty (String name, String defaultValue) |
Static Public Member Functions | |
Map< String, Object > | createPropertiesMap () |
Static Public Attributes | |
final String | IS_ACS_PROPERTIES_MAP_KEYNAME = "isAcsPropertiesMap" |
final String | PARAM_THREAD_NAME = "ThreadName" |
final String | PARAM_LINE = "Line" |
final String | PARAM_HOSTNAME = "HostName" |
final String | PARAM_STACK_ID = "StackId" |
final String | PARAM_STACK_LEVEL = "StackLevel" |
final String | PARAM_PRIORITY = "Priority" |
final String | PARAM_URI = "Uri" |
final String | PARAM_PROCESSNAME = "ProcessName" |
final String | PARAM_SOURCEOBJECT = "SourceObject" |
Package Functions | |
Map< String, Object > | extractSpecialPropertiesMap () |
Private Attributes | |
LogRecord | currentLogRecord |
Map< String, Object > | specialProperties |
List< Object > | otherParameters |
The rules are:
Map
are interpreted as name-value pairs and show up in the XML log output as <Data Name="key">value</Data>
<Data Name="LoggedParameter">value</Data>
Map
parameter that contains the key isAcsPropertiesMap
. Those values are recognized by the log formatter and result in special fields being set, instead of <Data/>
elements being constructed. When adding this map as a log parameter, it should be created using method createPropertiesMap(). LogRecord
, which can be set in the constructor or overwritten in setCurrentLogRecord(LogRecord).
|
|
|
Creates a new special properties map.
|
|
Extracts property with specified name of type long from the special properties map.
|
|
Tries to find the special properties map among the log parameters.
|
|
Extracts property with specified name of type String from the special properties map.
|
|
Returns parameters of the current log record which are different from the special Properties The returned list is "live", so don't muck with it.
|
|
Sets the log record from which the other methods can extract information. Also parses the special properties map and other parameters.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
A |