UNPKG

@bracketed/logger

Version:

An alternative to your run-of-the-mill node console logging functions!

37 lines (34 loc) 982 B
import { LoggerStyle } from '../Style/Style.js'; import { LoggerTimestamp } from '../Utilities/Timestamp.js'; import { LoggerLevelOptions } from './LevelOptions.js'; import '../Colouring/index.js'; import '../Style/Resolvable.js'; import '../Style/Options.js'; import '../Style/Background.js'; import '../Style/Effect.js'; import '../Style/Text.js'; import '../Timestamper/Timestamp.js'; /** * Logger utility that stores and applies a full style into the message. * @since 1.0.0 */ declare class LoggerLevel { /** * The timestamp formatter. * @since 1.0.0 */ timestamp: LoggerTimestamp | null; /** * The infix, added between the timestamp and the message. * @since 1.0.0 */ infix: string; /** * The style formatter for the message. * @since 1.0.0 */ message: LoggerStyle | null; constructor(options?: LoggerLevelOptions); run(content: string): string; } export { LoggerLevel };