import { LogEntry, LogMessageType } from './LogEntry.js'; /** * Defines the interface of a logger used by all the modules. */ export declare class LoggerInterface { /** The log level number */ _level: number; /** * sets a new log level * @param level - The logLevel as number or String value */ set level(level: number | string); /** * Returns the current log level * * @returns level - The logLevel as string */ get level(): string; /** * returns the logLevel as a number * @param level - The loglevel as a string * @returns The loglevel as a number */ protected getLevelNumber(level: string): number; /** * Returns the logLevel as a string * @param level - The loglevel as a number * @returns The loglevel as a string */ protected getLevelName(level: number): string; /** * Do the logging * @param level - The log level of the current entry * @param message - The data to log */ protected log(level: string, message: LogMessageType): void; /** * This function converts a log message into a log entry * @param level - The log level of the current entry * @param message - The data to log * @returns The log entry */ protected getLogEntry(level: string, message: LogMessageType): LogEntry; /** * Writes the log, or do what ever. At this point in time * the logs with the wrong level are already filtered * @param level - The log level of the current entry * @param entry - The log entry */ protected writeLog(level: string, // eslint-disable-line @typescript-eslint/no-unused-vars entry: LogEntry): void; /** * Logs the given message with the level 'debug' * @param message - The message or data to log */ debug(message: LogMessageType): void; /** * Logs the given message with the level 'info' * @param message - The message or data to log */ info(message: LogMessageType): void; /** * Logs the given message with the level 'warning' * @param message - The message or data to log */ warning(message: LogMessageType): void; /** * Logs the given message with the level 'error' * @param message - The message or data to log */ error(message: LogMessageType): void; /** * Logs the given message with the level 'fatal' * @param message - The message or data to log */ fatal(message: LogMessageType): void; /** * Returns a time string for the log entry * @returns The current time in the format used by this logger */ protected getTime(): string; } //# sourceMappingURL=LoggerInterface.d.ts.map