@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
12 lines (11 loc) • 380 B
TypeScript
import IConfiguration from './config/configuration';
import { Method } from './def';
import { Logger } from './logger/logger';
/**
* Configures the logger
*
* @function
* @params {IConfiguration} config
*/
export declare function configure(config: IConfiguration): void;
export declare const getLogger: <T>(context?: string | Function | (new () => T) | Method<T>) => Logger;