better-logging
Version:
better-logging is a drop in replacement for the default logging methods of node.js
23 lines (22 loc) • 963 B
TypeScript
import { DeepPartial, DataClass } from '@olian/typescript-helpers';
import { FormattingContext } from './interfaces/formattingContext';
import { MessageConstructionStrategy } from './enums/messageConstructionStrategy';
import { Theme } from './interfaces/theme';
export declare class Config extends DataClass<Config> {
readonly messageConstructionStrategy: MessageConstructionStrategy;
readonly format: (ctx: FormattingContext) => string;
readonly formatStamp: (content: string) => string;
readonly saveToFile: string | null;
readonly color: Theme;
readonly logLevels: {
readonly debug: number;
readonly log: number;
readonly info: number;
readonly line: number;
readonly warn: number;
readonly error: number;
};
}
export declare type PartialConfig = DeepPartial<Config>;
export declare const DefaultConfig: Config;
export declare const resolveConfig: (config: PartialConfig) => Config;