Skip to content

SudoSOS Back-end API / internal/helpers / toStructuredLogEvent

Function: toStructuredLogEvent() ​

ts
function toStructuredLogEvent(event): StructuredLogEvent;

Flatten a log4js event into a single record, annotated with the context of the request that produced it.

Parameters ​

ParameterTypeDescription
eventLoggingEventthe log4js event to flatten.

Returns ​

StructuredLogEvent