-
Notifications
You must be signed in to change notification settings - Fork 460
LogMessage
pozil edited this page Nov 14, 2024
·
12 revisions
A class for automatically attaching metadata to log messages like Quiddity and RequestID
Group Shared Code
private static final EXCEPTION_STRING_FORMAT
String
public read only property for the request ID. Privately set.
public requestId
String
Public read only property for quiddity. Privately set.
public quiddity
Quiddity
Public message property.
public message
String
Public severity property.
public severity
Constructor accepting a message to log. Severity is auto set to info
public LogMessage(String message)
Name | Type | Description |
---|---|---|
message | String |
Constructor accepting an exception object.
public LogMessage(Exception ex)
Name | Type | Description |
---|---|---|
ex | Exception |
converts this object to an event for publishing
public Log__e toEvent()
Log__e