UNPKG

container.ts

Version:
16 lines (15 loc) 693 B
import { IContainerModuleOpts, ContainerLogMessage } from "../../container"; import { Log } from "./Log"; export declare const ENV_ROLLBAR_ACCESS_TOKEN = "ROLLBAR_ACCESS_TOKEN"; export declare const ENV_ROLLBAR_REPORT_LEVEL = "ROLLBAR_REPORT_LEVEL"; export declare class RollbarLog extends Log { private _process; private _rollbar; constructor(name: string, opts: IContainerModuleOpts); /** Rollbar handler for incoming log messages. */ protected handleLog(log: ContainerLogMessage): void; /** Rollbar error handler callback. */ protected handlerError(error?: any): void; /** Return rollbar report level. */ protected reportLevel(value?: string): string; }