Merge pull request #1231 from log4js-node/1096-log-event-call-stack-information-not-in-typescript-types

chore(types): LogEvent types
This commit is contained in:
Lam Wei Li 2022-04-13 00:53:03 +08:00 committed by GitHub
commit cfb0c48183
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

5
types/log4js.d.ts vendored
View File

@ -66,6 +66,11 @@ export interface LoggingEvent {
workerId: number;
worker: number;
};
functionName?: string;
fileName?: string;
lineNumber?: number;
columnNumber?: number;
callStack?: string;
}
export type Token = ((logEvent: LoggingEvent) => string) | string;