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

8 lines (7 loc) 260 B
import { TValidValues } from "./constants"; /** * Adds a key-value pair to the current active log context * @param {string} key * @param {string | number | boolean | Date} value */ export declare const setOnLog: (key: string, value: TValidValues) => void;