UNPKG

logmessage-cls-hooked

Version:

A LogRoot Method Decorator that uses cls-hooked to handle and propagate log message details between different methods deeper in the callstack, removing the need to propagate a paremeter just for logging purposes

7 lines (6 loc) 259 B
/** * You must call this function only ONCE. It's used to create * a namespace in the Node CLS. That's mandatory to your log * contexts to work properly */ export declare const initLogMessageCls: () => import("cls-hooked").Namespace<Record<string, any>>;