/** * Serves as a central point of log handling. */ export class LogHandler { /** * @param {Object} options Options object containing: * - {EventEmitter} events Embark events * - {Logger} logger Embark logger * - {String} processName Name of the process for which it's logs * are being handled. * - {Boolean} silent If true, does not log the message, unless * it has a logLevel of 'error'. */ constructor({ events, logger, processName, silent }: any); events: any; logger: any; processName: any; silent: any; logs: any[]; id: number; /** * Servers as an interception of logs, normalises the message output, adds * metadata (timestamp, id), stores the log in memory, then sends it to the * logger for output. Max number of logs stored in memory is capped by MAX_LOGS. * * @param {Object} msg Object containing the log message (msg.message) * @param {Boolean} alreadyLogged (optional, default = false) If true, prevents * the logger from logging the event. Generally used when the log has already * been logged using the Logger (which emits a "log" event), and is then sent * to `handleLog` for normalization. If allowed to log again, another event * would be emitted, and an infinite loop would occur. Setting to true will * prevent infinite looping. * * @returns {void} */ handleLog(msg: any, alreadyLogged?: boolean): void; } //# sourceMappingURL=logHandler.d.ts.map