UNPKG

@bracketed/logger

Version:

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

37 lines (34 loc) 992 B
import { LoggerStyle } from '../Style/Style.mjs'; import { LoggerTimestamp } from '../Utilities/Timestamp.mjs'; import { LoggerLevelOptions } from './LevelOptions.mjs'; import '../Colouring/index.mjs'; import '../Style/Resolvable.mjs'; import '../Style/Options.mjs'; import '../Style/Background.mjs'; import '../Style/Effect.mjs'; import '../Style/Text.mjs'; import '../Timestamper/Timestamp.mjs'; /** * 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 };