Skip to main content

LogMessage

type LogMessage = BaseLogSchema & {
@timestamp: string;
level: keyof typeof LogLevels;
message: string;
resourceId?: string;
resourceType?: string;
} & LogData;

log message object received by transport layer

Type Declaration

@timestamp

@timestamp: string;

time at which the log message was processed

level

level: keyof typeof LogLevels;

log level of the message. LogLevels

message

message: string;

log message

resourceId?

optional resourceId: string;

The ID of the resource that the current request/message is working on. Only applicable when resourceType is also present

resourceType?

optional resourceType: string;

The type of resource that the current request/message is working on: loan, contact, agent, etc.