mirror of
https://github.com/log4js-node/log4js-node.git
synced 2025-12-08 19:26:01 +00:00
fix: add levels to typedefinition
This commit is contained in:
parent
02c6ebbb2d
commit
08f6a1daa8
10
types/log4js.d.ts
vendored
10
types/log4js.d.ts
vendored
@ -9,6 +9,8 @@ export function addLayout(name: string, config: (a: any) => (logEvent: LoggingEv
|
||||
|
||||
export function connectLogger(logger: Logger, options: { format?: string; level?: string; nolog?: any; }): any; // express.Handler;
|
||||
|
||||
export function levels(): Levels;
|
||||
|
||||
export function shutdown(cb?: (error: Error) => void);
|
||||
|
||||
export interface BaseLayout {
|
||||
@ -386,12 +388,20 @@ export type Appender = CategoryFilterAppender
|
||||
| StandardErrorAppender
|
||||
| StandardOutputAppender;
|
||||
|
||||
export interface Levels {
|
||||
[index: string]: {
|
||||
value: number;
|
||||
colour: string;
|
||||
};
|
||||
}
|
||||
|
||||
export interface Configuration {
|
||||
appenders: { [name: string]: Appender; };
|
||||
categories: { [name: string]: { appenders: string[]; level: string; } };
|
||||
pm2?: boolean;
|
||||
pm2InstanceVar?: string;
|
||||
levels?: Levels;
|
||||
disableClustering?: boolean;
|
||||
}
|
||||
|
||||
export interface Logger {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user