smartlog/ts/smartlog.classes.consolelog.ts

16 lines
373 B
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}`);
}
}