UNPKG

@robotical/ricjs

Version:

Javascript/TS library for Robotical RIC

23 lines (22 loc) 715 B
export declare enum RICLogLevel { NONE = 0, ERROR = 1, WARN = 2, INFO = 3, DEBUG = 4, VERBOSE = 5 } export declare type RICLogFn = (logLevel: RICLogLevel, msg: string) => void; export default class RICLog { static _logListener: RICLogFn | null; static _logLevel: RICLogLevel; static format(msg: string): string; static debug(msg: string): void; static info(msg: string): void; static warn(msg: string): void; static error(msg: string): void; static verbose(msg: string): void; static setLogListener(listener: RICLogFn | null): void; static setLogLevel(logLevel: RICLogLevel): void; static doLogging(logLevel: RICLogLevel, msg: string): boolean; }