@push.rocks/smartlog
Version:
A minimalistic, distributed, and extensible logging tool supporting centralized log management.
23 lines (22 loc) • 710 B
TypeScript
import type { ILogDestination, ILogPackage } from '../dist_ts_interfaces/index.js';
export declare class DestinationLocal implements ILogDestination {
/**
* handles a log according to the smartlog standard
* @param logPackage
*/
handleLog(logPackage: ILogPackage): Promise<void>;
/**
* creates a new empty line
* @param linesArg
* @returns void
*/
newLine(linesArg?: number): void;
/**
* logs a reduced log that only logs changes of consequential log messages
*/
logReduced(logTextArg: string, repeatEveryTimesArg?: number): void;
private previousMessage;
private sameMessageCounter;
private logToConsole;
private localBl;
}