UNPKG

904 BTypeScriptView Raw
1import { ILogEntry, ILogListener } from "./index.js";
2export declare function ConsoleListener(prefix?: string, colors?: IConsoleListenerColors): ILogListener;
3/**
4 * Text color options for use in the ConsoleListener
5 * All values can be specified as known names, hex values, rgb, or rgba values
6 */
7export interface IConsoleListenerColors {
8 /** Default text color for all logging levels unless they're specified */
9 color?: string;
10 /** Text color to use for messages with LogLevel.Verbose */
11 verbose?: string;
12 /** Text color to use for messages with LogLevel.Info */
13 info?: string;
14 /** Text color to use for messages with LogLevel.Warning */
15 warning?: string;
16 /** Text color to use for messages with LogLevel.Error */
17 error?: string;
18}
19export declare function FunctionListener(impl: (entry: ILogEntry) => void): ILogListener;
20//# sourceMappingURL=listeners.d.ts.map
\No newline at end of file