fix(core): update

This commit is contained in:
2020-06-08 20:39:40 +00:00
parent 5a475260dd
commit 2cc3e6c906
3 changed files with 33 additions and 2 deletions

View File

@ -1,6 +1,7 @@
import * as plugins from './smartlog.plugins';
import { LogRouter } from './smartlog.classes.logrouter';
import { LogGroup } from '.';
export interface ISmartlogContructorOptions {
logContext: plugins.smartlogInterfaces.ILogContext;
@ -11,7 +12,7 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination {
private logContext: plugins.smartlogInterfaces.ILogContext;
private minimumLogLevel: plugins.smartlogInterfaces.TLogLevel;
private uniInstanceId: string = plugins.isounique.uni();
public uniInstanceId: string = plugins.isounique.uni();
private consoleEnabled: boolean;
@ -127,4 +128,8 @@ export class Smartlog implements plugins.smartlogInterfaces.ILogDestination {
`LOG => ${new Date().getHours()}:${new Date().getMinutes()}:${new Date().getSeconds()} => ${logLine}`
);
}
public createLogGroup(transactionId: string = 'none') {
return new LogGroup(this, transactionId);
}
}