Class LogMessageParams
PolicyCenter uses LogMessageParams utility
objects to create and format key-value pairs associated with a business event. PolicyCenter uses the data object to format key-value pairs for
better human readability and machine parsing.
The following log record is an example of a formatted marker string, enclosed by curly
braces {…}.
<BatchProcessCompleted> Batch process completed {type="Workflow", processHistoryId=103,
elapsedTimeMs=13, error=null}
Notice the following:
- String values have surrounding double quotes,
type="Workflow", for example. - Boolean, number, and
nullvalues have no special formatting;processHistoryId=103orerror=null, for example. - Exceptions, if present, for example:
"Exception class:exception message"; error="java.lang.RuntimeException: Behavior code is Error"
Guidewire uses these formatting conventions as it is easy to parse this information programmatically. Third-party tools, such as SumoLogic, can easily parse a log record that contains this type of formatted information.
Refer to the following SumoLogic web site for more information about SumoLogic:
