fix(core): update

This commit is contained in:
Philipp Kunz 2018-11-04 15:26:40 +01:00
parent 793cd38381
commit 2b920e2f5e

View File

@ -1,7 +1,7 @@
import * as plugins from './smartlog.plugins';
// interfaces
import { TLogType, TEnvironment, ILogContext, TLogLevel, TRuntime } from '@pushrocks/smartlog-interfaces';
import { TLogType, TEnvironment, ILogContext, TLogLevel, TRuntime, ILogDestination } from '@pushrocks/smartlog-interfaces';
import { LogRouter } from './smartlog.classes.logrouter';
@ -18,7 +18,9 @@ export class Smartlog {
private logRouter = new LogRouter();
public addLogDestination = this.logRouter.addLogDestination;
public addLogDestination (logDestinationArg: ILogDestination) {
this.logRouter.addLogDestination(logDestinationArg);
}
constructor(optionsArg: ISmartlogContructorOptions) {
this.logContext = optionsArg.logContext;