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

6 lines (5 loc) 217 B
/** * Method decorator that starts a new LogRoot. All subsequent calls of setOnLog/appendToLog * will use a new context inherited from existing active context */ export declare function LogRoot(): MethodDecorator;