UNPKG

bit-bin

Version:

<a href="https://opensource.org/licenses/Apache-2.0"><img alt="apache" src="https://img.shields.io/badge/License-Apache%202.0-blue.svg"></a> <a href="https://github.com/teambit/bit/blob/master/CONTRIBUTING.md"><img alt="prs" src="https://img.shields.io/b

21 lines (20 loc) 575 B
import { LogPublisher } from '../types'; export declare enum LogLevel { INFO = "info", WARN = "warn", ERROR = "error", DEBUG = "debug" } export declare type LogEntry = { componentId: string; messages: [any]; logLevel: LogLevel; }; export default class Logger { private eventEmitter; private subscribers; createLogPublisher(extensionName: string): LogPublisher; subscribe(extensionName: string, cb: (LogEntry: any) => void): void; subscribeAll(cb: (LogEntry: any) => void): void; unsubscribe(extensionName: string): void; }