@bracketed/logger
Version:
An alternative to your run-of-the-mill node console logging functions!
55 lines (52 loc) • 1.58 kB
TypeScript
import { LoggerLevelOptions } from './LevelOptions.js';
import '../Style/Resolvable.js';
import '../Colouring/index.js';
import '../Style/Options.js';
import '../Style/Background.js';
import '../Style/Effect.js';
import '../Style/Text.js';
import '../Utilities/Timestamp.js';
import '../Style/Style.js';
import '../Timestamper/Timestamp.js';
/**
* The logger format options.
* @since 1.0.0
*/
interface LoggerFormatOptions {
/**
* The logger options for the lowest log level, used when calling {@link ILogger.trace}.
* @since 1.0.0
*/
trace?: LoggerLevelOptions;
/**
* The logger options for the debug level, used when calling {@link ILogger.debug}.
* @since 1.0.0
*/
debug?: LoggerLevelOptions;
/**
* The logger options for the info level, used when calling {@link ILogger.info}.
* @since 1.0.0
*/
info?: LoggerLevelOptions;
/**
* The logger options for the warning level, used when calling {@link ILogger.warn}.
* @since 1.0.0
*/
warn?: LoggerLevelOptions;
/**
* The logger options for the error level, used when calling {@link ILogger.error}.
* @since 1.0.0
*/
error?: LoggerLevelOptions;
/**
* The logger options for the critical level, used when calling {@link ILogger.fatal}.
* @since 1.0.0
*/
fatal?: LoggerLevelOptions;
/**
* The logger options for an unknown or uncategorised level.
* @since 1.0.0
*/
none?: LoggerLevelOptions;
}
export type { LoggerFormatOptions };