@nekolab/hanime
Version:
Fast and efficient hanime.tv API wrapper written in TypeScript.
63 lines • 1.67 kB
TypeScript
import { LoggingConfig } from '../types/logging';
/**
* A client for logging.
*/
export declare class LoggingClient {
/**
* Logging configuration.
*/
private config;
/**
* Mapping of logging levels to their priorities.
*/
private static LEVEL_PRIORITIES;
/**
* Initializes a new instance of the LoggingClient class.
* @param config Logging configuration.
*/
constructor(config: LoggingConfig);
/**
* Log a message at the 'fatal' level.
* @param args Arguments to log.
*/
fatal(...args: any[]): void;
/**
* Log a message at the 'error' level.
* @param args Arguments to log.
*/
error(...args: any[]): void;
/**
* Log a message at the 'warn' level.
* @param args Arguments to log.
*/
warn(...args: any[]): void;
/**
* Log a message at the 'info' level.
* @param args Arguments to log.
*/
info(...args: any[]): void;
/**
* Log a message at the 'debug' level.
* @param args Arguments to log.
*/
debug(...args: any[]): void;
/**
* Log a message at the specified level if the current configuration allows it.
* @param level Log level.
* @param args Arguments to log.
*/
private log;
/**
* Determine if a message should be logged based on the current log level.
* @param level Log level.
* @returns Whether the message should be logged.
*/
private shouldLog;
/**
* Get the prefix for a log message.
* @param level Log level.
* @returns The log message prefix.
*/
private getPrefix;
}
//# sourceMappingURL=logging.d.ts.map