UNPKG

@geogirafe/lib-geoportal

Version:

GeoGirafe is a flexible application to build online geoportals.

38 lines (37 loc) 1.29 kB
import GirafeSingleton from '../../base/GirafeSingleton'; import ConfigManager from '../configuration/configmanager'; export default class LogManager extends GirafeSingleton { configManager: ConfigManager; defaultDebug: typeof console.debug; defaultLog: typeof console.log; defaultInfo: typeof console.info; defaultWarn: typeof console.warn; defaultError: typeof console.error; constructor(type: string); initLogging(): Promise<void>; /** * Write log to output if the current loglevel is debug, info, warn or error * @returns true if the log was written, false instead */ private debug; /** * Write log to output if the current loglevel is info, warn or error * @returns true if the log was written, false instead */ private log; /** * Write log to output if the current loglevel is info, warn or error * @returns true if the log was written, false instead */ private info; /** * Write log to output if the current loglevel is warn or error * @returns true if the log was written, false instead */ private warn; /** * Write log to output if the current loglevel is error * @returns true if the log was written, false instead */ private error; }