@bracketed/logger
Version:
An alternative to your run-of-the-mill node console logging functions!
37 lines (34 loc) • 992 B
text/typescript
import { LoggerStyleResolvable } from '../Style/Resolvable.mjs';
import { LoggerTimestampOptions } from '../Utilities/Timestamp.mjs';
import '../Colouring/index.mjs';
import '../Style/Options.mjs';
import '../Style/Background.mjs';
import '../Style/Effect.mjs';
import '../Style/Text.mjs';
import '../Style/Style.mjs';
import '../Timestamper/Timestamp.mjs';
/**
* 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 };