LogMessage

Data object used to store captured log messages.

Description

The LogMessage class allows you to create data objects used to store captured log messages.

Important points

Fields

time

The time the message was generated

_time: datetime

level

This log level

_level: LogLevel

source

The source (context name)

_source: str

context

A context to trace execution through a call chain.

_context: Optional[IContext]

error

An error object associated with this message.

See also ErrorDescription, ApplicationException

_error: ErrorDescription

message

The human-readable message

_message: str

traceId

The transaction id to trace execution through call chain.

_traceID: str