Skip to content

SudoSOS Back-end API / internal/helpers / toPrettyLogLine

Function: toPrettyLogLine() ​

ts
function toPrettyLogLine(event): string;

Render a log4js event as a single human-readable line, keeping the request id so that the pretty format stays correlatable as well.

Parameters ​

ParameterTypeDescription
eventLoggingEventthe log4js event to render.

Returns ​

string