UNPKG

@userfrosting/ts-log-adapter-gulplog

Version:

An adapter for the ts-log interface that pushes logging to gulplog with optional arguments JSON encoded.

22 lines (21 loc) 790 B
/** * An adapter for the ts-log interface that pushes logging to gulplog with optional arguments JSON encoded. * @packageDocumentation */ import { Logger } from "ts-log"; /** * `gulplog` logging adapter. * @public */ export declare class GulpLogLogger implements Logger { private prefix; /** * @param prefix - Optionally annotate logs with a prefix such as the package name to identify log source. */ constructor(prefix?: string); trace: (message?: any, ...optionalParams: any[]) => void; debug: (message?: any, ...optionalParams: any[]) => void; info: (message?: any, ...optionalParams: any[]) => void; warn: (message?: any, ...optionalParams: any[]) => void; error: (message?: any, ...optionalParams: any[]) => void; }