smartlog/ts/smartlog.classes.consolelog.ts

16 lines
373 B
TypeScript
Raw Normal View History

2022-06-26 08:35:35 +00:00
import * as plugins from './smartlog.plugins.js';
2020-06-08 18:51:11 +00:00
/**
* a console log optimized for smartlog
*/
export class ConsoleLog {
2020-06-11 13:23:07 +00:00
public log(
logLevelArg: plugins.smartlogInterfaces.TLogLevel,
logMessageArg: string,
dataArg?: any,
correlationArg?: plugins.smartlogInterfaces.ILogCorrelation
) {
2020-06-08 18:51:11 +00:00
console.log(`__# ${logLevelArg}: ${logMessageArg}`);
}
}