/** * Adds a list of strings that should be masked by the logger. * This function can only be called once through out the life of the server. * * @param {Array} maskables a list of strings to be masked */ export function setMaskables(maskables: any[]): void; export function setProcessName(newProcessName: any): void; /** * INFO level log * * @param {string} msg the message to log * @param {string} [tag] a unique tag to easily search for this message * @param {string} [traceId] a unique id to easily trace logs tied to a request */ export function info(msg: string, tag?: string, traceId?: string): void; /** * WARN level log * * @param {string} msg the message to log * @param {string} [tag] a unique tag to easily search for this message * @param {string} [traceId] a unique id to easily trace logs tied to a request */ export function warn(msg: string, tag?: string, traceId?: string): void; /** * ERROR level log * * @param {string | Error} msg the message to log * @param {string} [tag] a unique tag to easily search for this message * @param {string} [traceId] a unique id to easily trace logs tied to a request */ export function error(msg: string | Error, tag?: string, traceId?: string): void; /** * DEBUG level log * * @param {string} msg the message to log * @param {string} [tag] a unique tag to easily search for this message * @param {string} [traceId] a unique id to easily trace logs tied to a request */ export function debug(msg: string, tag?: string, traceId?: string): void; export default logger; /** * message log */ export type styleText = typeof util.styleText; /** * message log */ export type Colors = Parameters[0]; declare namespace logger { export { setMaskables }; export { setProcessName }; export { info }; export { warn }; export { error }; export { debug }; } import util from 'node:util';