UNPKG

log4js2

Version:

[![Build Status](https://travis-ci.org/anigenero/log4js2.svg?branch=master)](https://travis-ci.org/anigenero/log4js2) [![codecov](https://codecov.io/gh/anigenero/log4js2/branch/master/graph/badge.svg)](https://codecov.io/gh/anigenero/log4js2)

19 lines (18 loc) 568 B
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;