think-logger3
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "think-logger3", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "logger for ThinkJS 3.x", | ||
@@ -5,0 +5,0 @@ "main": "./src", |
@@ -8,3 +8,3 @@ # think-logger | ||
ThinkJS3.x log module | ||
ThinkJS3.x log module, based on log4js. | ||
@@ -120,2 +120,2 @@ ## Installation | ||
[MIT](https://github.com/thinkjs/think-logger/blob/master/LICENSE) | ||
[MIT](https://github.com/thinkjs/think-logger/blob/master/LICENSE) |
@@ -8,8 +8,9 @@ const Base = require('./base'); | ||
let lConfig = Object.assign({}, config); | ||
let {level} = lConfig; | ||
let {level, layout} = lConfig; | ||
level = level ? level.toUpperCase() : 'ALL'; | ||
layout = layout ? layout : {type: 'pattern', pattern: '%[[%d] [%p]%] - %m'}; | ||
config = Object.assign({ | ||
appenders: [ | ||
{type: 'console', level} | ||
{type: 'console', level, layout} | ||
] | ||
@@ -16,0 +17,0 @@ }, lConfig); |
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
133430
671
120