@log4js2/core
Version:
log4js2 is a fast and lightweight logging library that enables logging flexibility within JavaScript/TypeScript applications, similar to Apache's [Log4j2 library](https://logging.apache.org/log4j/2.x/). It can also serve as a drop-in replacement for log4
23 lines (22 loc) • 531 B
TypeScript
import { LogLevel } from './const/log.level';
import { Method } from './def';
import { Marker } from './marker';
export interface ILogEvent {
date?: Date;
error?: Error;
logErrorStack?: Error;
file?: string;
filename?: string;
level?: LogLevel;
lineNumber?: string | number;
column?: string;
logger?: string;
marker?: Marker;
message?: string;
method?: Method<any> | Function | 0;
properties?: {
[key: string]: any;
};
relative?: number;
sequence?: number;
}