log4js2
Version:
[](https://travis-ci.org/anigenero/log4js2) [](https://codecov.io/gh/anigenero/log4js2)
19 lines (18 loc) • 568 B
TypeScript
import ILoggerConfiguration from '../config/logger.config';
import { Logger } from './logger';
/**
* The name of the main logger. We use this in case no logger is specified
* @const
*/
export declare const MAIN_LOGGER = "main";
export declare const addLogger: (tag: string, logger: Logger) => void;
/**
* Handles creating the logger and returning it
*
* @function
*
* @param {function|string=} context
* @param {ILoggerConfiguration} config
* @return {Logger}
*/
export declare const getLogger: <T>(context: string, config: ILoggerConfiguration) => Logger;