2020-06-08 18:51:11 +00:00
|
|
|
import * as plugins from './smartlog.plugins';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 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}`);
|
|
|
|
}
|
|
|
|
}
|