UNPKG

@ar.io/sdk

Version:

[![codecov](https://codecov.io/gh/ar-io/ar-io-sdk/graph/badge.svg?token=7dXKcT7dJy)](https://codecov.io/gh/ar-io/ar-io-sdk)

24 lines (23 loc) 853 B
export type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'none'; export interface ILogger { setLogLevel: (level: LogLevel) => void; info: (message: string, ...args: unknown[]) => void; warn: (message: string, ...args: unknown[]) => void; error: (message: string, ...args: unknown[]) => void; debug: (message: string, ...args: unknown[]) => void; } export declare class Logger implements ILogger { private level; private levels; static default: Logger; constructor({ level, }?: { level?: LogLevel; }); private formatMessage; private log; info(message: string, ...args: unknown[]): void; warn(message: string, ...args: unknown[]): void; error(message: string, ...args: unknown[]): void; debug(message: string, ...args: unknown[]): void; setLogLevel(level: LogLevel): void; }