@push.rocks/smartlog
Version:
A minimalistic, distributed, and extensible logging tool supporting centralized log management.
16 lines (14 loc) • 374 B
text/typescript
import * as plugins from './smartlog.plugins.js';
/**
* a console log optimized for smartlog
*/
export class ConsoleLog {
public log(
logLevelArg: plugins.smartlogInterfaces.TLogLevel,
logMessageArg: string,
dataArg?: any,
correlationArg?: plugins.smartlogInterfaces.ILogCorrelation,
) {
console.log(`__# ${logLevelArg}: ${logMessageArg}`);
}
}