Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
5d0056558a | |||
2b920e2f5e | |||
793cd38381 | |||
7a05e4484d | |||
2fe657f5af | |||
5508beae25 |
8
package-lock.json
generated
8
package-lock.json
generated
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartlog",
|
||||
"version": "2.0.4",
|
||||
"version": "2.0.7",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
@ -168,9 +168,9 @@
|
||||
}
|
||||
},
|
||||
"@pushrocks/smartlog-interfaces": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/@pushrocks/smartlog-interfaces/-/smartlog-interfaces-2.0.0.tgz",
|
||||
"integrity": "sha512-rk3uEp78AXLULS81SUe6YtZvyQiDImuJu/zxnIzzUFDB6ciisqtJ1qVcHYbVsW/kImeo8vBFlQyKY9/YaNgkDw=="
|
||||
"version": "2.0.1",
|
||||
"resolved": "https://registry.npmjs.org/@pushrocks/smartlog-interfaces/-/smartlog-interfaces-2.0.1.tgz",
|
||||
"integrity": "sha512-c9onE52z/5fGX5uEvaI/rXbcC6n7PkLrNjehRM+6JsK7HIbdAzrgY1PGrqUfW0a03hSe03mFcggORID+fQI4tA=="
|
||||
},
|
||||
"@pushrocks/smartpath": {
|
||||
"version": "4.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@pushrocks/smartlog",
|
||||
"version": "2.0.4",
|
||||
"version": "2.0.7",
|
||||
"private": false,
|
||||
"description": "winston based logger for large scale projects",
|
||||
"main": "dist/index.js",
|
||||
@ -22,6 +22,6 @@
|
||||
"tslint-config-prettier": "^1.15.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pushrocks/smartlog-interfaces": "^2.0.0"
|
||||
"@pushrocks/smartlog-interfaces": "^2.0.1"
|
||||
}
|
||||
}
|
||||
|
@ -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';
|
||||
|
||||
@ -16,9 +16,11 @@ export class Smartlog {
|
||||
|
||||
private consoleEnabled: boolean;
|
||||
|
||||
public logRouter = new LogRouter();
|
||||
private logRouter = new LogRouter();
|
||||
|
||||
public addLogDestination = this.logRouter.addLogDestination;
|
||||
public addLogDestination (logDestinationArg: ILogDestination) {
|
||||
this.logRouter.addLogDestination(logDestinationArg);
|
||||
}
|
||||
|
||||
constructor(optionsArg: ISmartlogContructorOptions) {
|
||||
this.logContext = optionsArg.logContext;
|
||||
@ -37,12 +39,6 @@ export class Smartlog {
|
||||
this.consoleEnabled = true;
|
||||
}
|
||||
|
||||
/**
|
||||
* set a minimum serverity level to log
|
||||
* @param levelArg
|
||||
*/
|
||||
level(levelArg: TLogLevel) {}
|
||||
|
||||
// =============
|
||||
// log functions
|
||||
// =============
|
||||
|
Reference in New Issue
Block a user