import { LogEventLevel, LogEventLevelSwitch } from './logEvent'; import { FilterStage } from './filterStage'; /** * Allows dynamic control of the logging level. */ export declare class DynamicLevelSwitch implements LogEventLevelSwitch> { private minLevel?; constructor(defaultLevel?: LogEventLevel); /** * Gets or sets a delegate that can be called when the pipeline needs to be flushed. * This should generally not be modified, as it will be provided by the pipeline stage. */ flushDelegate: () => Promise; fatal(): Promise; error(): Promise; warning(): Promise; information(): Promise; debug(): Promise; verbose(): Promise; off(): Promise; set(level: LogEventLevel): Promise; isEnabled(level: LogEventLevel): boolean; } export declare class DynamicLevelSwitchStage extends FilterStage { private dynamicLevelSwitch; /** * Sets a delegate that can be called when the pipeline needs to be flushed. */ setFlushDelegate(flushDelegate: () => Promise): void; constructor(dynamicLevelSwitch: DynamicLevelSwitch); }