Skip to main content

Class: LogEntry

Entity representing a persisted log entry.

Constructors​

Constructor​

new LogEntry(): LogEntry

Returns​

LogEntry

Properties​

id​

id: string

The id. Bounded so storage backends index it in full rather than by prefix.


level​

level: LogLevel

The level of the error being logged.


source​

source: string

The source of the log entry.


ts​

ts: number

The timestamp of the log entry.


message​

message: string

The message.


error?​

optional error?: LogEntryError[]

Associated error data.


data?​

optional data?: object

Data for the message.

Index Signature​

[key: string]: unknown