The severity of the log message. Possible values are specified in the LogMessage.Severity Enum.
An id that can be set in order to identify a specific log message.
The category classifying the log message. The syntax is 'Category.Subcategory.*'.
The reference to the source code structural entity ("Module:Submodule:Class:Function") where the log message has been created.
An optional origin (runtime environment, process id, etc.) where the instance of the code from where the message originates has been executed.
The actual message containing '%key%' entries that will be replaced with the values of the respective keys in the parameters object.
An optional parameters object containing some parameters that are to be inserted into the message string.
An id to enable messages to be logged only once. If set to true, the id must be set in order to prevent the message from being logged twice
Optional
time: DateProtected
_categoryThe category classifying the log message. The syntax is 'Category.Subcategory.*'.
Protected
_idAn id that can be set in order to identify a specific log message.
Protected
_messageThe actual message containing '%key%' entries that will be replaced with the values of the respective keys in the parameters object.
Protected
_onceAn id that enables the message to be logged only once. If set to true, at least the message id must be set.
Protected
_originAn optional origin (runtime environment, process id, etc.) where the instance of the code from where the message originates has been executed.
Protected
_parametersAn optional parameters object containing some parameters that are to be inserted into the message string.
Protected
_refThe reference to the source code structural entity ("Module:Submodule:Class:Function") where the log message has been created.
Protected
_severityThe severity of the log message.
Protected
_timeThe time of creation of the log message.
Static
NO_Static
NO_An id that can be set in order to identify a specific log message.
The actual message containing '%key%' entries that will be replaced with the values of the respective keys in the parameters object.
An id that enables the message to be logged only once. If set to true, at least the message id must be set.
An optional origin (runtime environment, process id, etc.) where the instance of the code from where the message originates has been executed.
An optional parameters object containing some parameters that are to be inserted into the message string.
The reference to the source code structural entity ("Module:Submodule:Class:Function") where the log message has been created.
The time of creation of the log message.
Serializes an error object to JSON. Adds extended error properties like fileName and lineNumber.
The error object, that shall to be serialized.
the serialized error object
Inserts the parameters of the logmessage into the '%key%' placeholders within the message string. Only members of a primitive value in the parameters object will be printed to the message. Nested objects are supported in a way that the message may have paths as placeholders, e.g. '%key.subkey.subkey%'. Circular parameter objects are supported whilst not being encouraged, so that the same value may appear per different paths.
Optional
message: stringAn optional string to update with the log message parameters. If not provided, the log message string will be used.
the updated message string or null, if no message string is provided or stored in the current object.
Transforms the log message object to a json-string. Circular references or duplicate objects in the parameters object are handled prior to serialization. Error objects are transformed into plain json objects.
Whether to generate human-readable JSON. String or number parameters will be used to set the indentation.
Static
fromCreates a log message object from a json-string.
The stringyfied message.
The restored log message.
Static
fromDeserializes an XML string into a log message object.
The XML log message string.
The deserealized log message object.
The LogMessage is the internal formal object containing all relevant information of an event that is to be logged.
Version
1