UNPKG

advanced-logger

Version:

Advanced logger module extendable with plugins. Works in nodejs and browsers

18 lines (17 loc) 529 B
/// <reference types="node" /> import { EventEmitter } from "events"; import IAddEventConfig from "../interface/config/IAddEventConfig"; import IStrategy from "./../interface/IStrategy"; export default class OnIntervalStrategy implements IStrategy { eventEmitter: EventEmitter; SEND_INTERVAL: number; private readonly intervalSend; constructor(config: { interval?: number; }); onAdd(info?: IAddEventConfig): void; onClear(): void; sendAll(): void; destroy(): void; private send; }