@bracketed/logger
Version:
An alternative to your run-of-the-mill node console logging functions!
37 lines (34 loc) • 983 B
TypeScript
import { LoggerStyleResolvable } from '../Style/Resolvable.js';
import { LoggerTimestampOptions } from '../Utilities/Timestamp.js';
import '../Colouring/index.js';
import '../Style/Options.js';
import '../Style/Background.js';
import '../Style/Effect.js';
import '../Style/Text.js';
import '../Style/Style.js';
import '../Timestamper/Timestamp.js';
/**
* The options for {@link LoggerLevel}.
* @since 1.0.0
*/
interface LoggerLevelOptions {
/**
* The timestamp options. Set to `null` to disable timestamp parsing.
* @since 1.0.0
* @default {}
*/
timestamp?: LoggerTimestampOptions | null;
/**
* The infix to be included between the timestamp and the message.
* @since 1.0.0
* @default ''
*/
infix?: string;
/**
* The style options for the message.
* @since 1.0.0
* @default colorette.clear
*/
message?: LoggerStyleResolvable | null;
}
export type { LoggerLevelOptions };