import { Level, LogFormatter, LoggerConfig, Sink } from './types'; /** * A formatter that defaults to: * [YYYYMMDD][][] * For example: * [20210915][D][MyLogger] Some Message * * This is exported as it may be easier to call this, then amend the output. * Ideally we'd have a proper tokenizer in place, but perhaps at a later date. */ export declare const DefaultFormatter: LogFormatter; export declare const _getOrCreateLoggerConfig: (loggerName: string, overrides?: Partial) => LoggerConfig; export declare class LoggingConfig { /** * Sets the level for all loggers, including existing ones * @param level */ static setLevel(level: Level): void; static get rootSink(): Sink; /** * Adds a sink to process log results * @param sink */ static addSinks(...sink: Array): void; static clearSinks(): void; /** * Redirects any console logs so they go via configured sinks. * * Replaces window.console's log, info, warn and error functions with a variants that sends logs to the _sink. * Note that the sink is a Composite sink so logs will still appear in the console via ConsoleSink. */ static captureConsoleLogs(): void; static get defaultLoggerConfig(): LoggerConfig; static getLoggerConfig(loggerName: string): LoggerConfig; } declare global { interface Window { _esp: { LoggingConfig: LoggingConfig; }; } }