think-logger3
Advanced tools
Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "think-logger3", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "logger for ThinkJS 3.x", | ||
@@ -5,0 +5,0 @@ "main": "./src", |
@@ -21,3 +21,3 @@ # think-logger | ||
```js | ||
const Logger = require('think-logger'); | ||
const Logger = require('think-logger3'); | ||
let logger = new Logger(); | ||
@@ -24,0 +24,0 @@ logger.debug('Hello World'); |
@@ -8,3 +8,3 @@ const assert = require('assert'); | ||
constructor(config, clusterMode) { | ||
let handle = config.handle; | ||
let handle = config.handle || ConsoleAdapter; | ||
delete config.handle; | ||
@@ -15,3 +15,3 @@ | ||
assert(this._logger[level], `adapter function ${level} not exist!`); | ||
this[level] = this._logger[level].bind(this); | ||
this[level] = this._logger[level].bind(this._logger); | ||
}); | ||
@@ -18,0 +18,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146048
41