To which logger we are adding a context. Could be a simple logger or another context logger, in which case the new context is added along with the parent one.
string that is prepended to the log messages. It is concatenated with the parent context if any.
Optional function to override how the context is stringified. It takes as parameter an array of contexts and returns a concatenated string. Default contextStringify example: ['ctx1', 'ctx'2] becomes "[ctx1|ctx2]".
Generated using TypeDoc
Prepends context to each log entry
Returns
A logger object that prepends the context when logging
Example: single context, default formatting
Example: nested context, default formatting
Example: nested context with custom formatter
(${ctx.join('&')}) =>
));