@zodash/logger
Advanced tools
Comparing version 0.2.13 to 0.2.14
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.2.14](https://github.com/zcorky/zodash/compare/@zodash/logger@0.2.13...@zodash/logger@0.2.14) (2021-03-24) | ||
**Note:** Version bump only for package @zodash/logger | ||
## [0.2.13](https://github.com/zcorky/zodash/compare/@zodash/logger@0.2.12...@zodash/logger@0.2.13) (2021-03-23) | ||
@@ -8,0 +16,0 @@ |
@@ -13,8 +13,8 @@ "use strict"; | ||
function format(data) { | ||
return (`${data.addr} - ${data.user || '-'} [${data.datetime}] "${data.method} ${data.path} HTTP/${data.version || '-'}" ` + | ||
`${data.requestTime} ${data.contentLength} ` + | ||
`${data.status} ${data.bodyBytesSent} "${data.referer || '-'}" ` + | ||
`"${data.userAgent || '-'}"`); | ||
return (`${data.addr} - ${data.user || '-'} [${data.datetime}] "${data.method} ${data.path} HTTP/${data.version || '-'}" ` | ||
+ `${data.requestTime} ${data.contentLength} ` | ||
+ `${data.status} ${data.bodyBytesSent} "${data.referer || '-'}" ` | ||
+ `"${data.userAgent || '-'}"`); | ||
} | ||
exports.format = format; | ||
//# sourceMappingURL=nginx.js.map |
@@ -49,5 +49,3 @@ "use strict"; | ||
} | ||
const message = pattern.replace(/%s/g, (_, index) => { | ||
return dataMap[index]; | ||
}); | ||
const message = pattern.replace(/%s/g, (_, index) => dataMap[index]); | ||
return [message]; | ||
@@ -94,7 +92,7 @@ } | ||
return (ctx) => __awaiter(this, void 0, void 0, function* () { | ||
const input = ctx.input; | ||
const { input } = ctx; | ||
if (this.options.console === false) { | ||
return; | ||
} | ||
const engine = input.engine; | ||
const { engine } = input; | ||
const message = formatMessage(this.name, input.datetime, input.message, input.level); | ||
@@ -101,0 +99,0 @@ const isUseDevConsole = Array.isArray(message); |
{ | ||
"name": "@zodash/logger", | ||
"version": "0.2.13", | ||
"version": "0.2.14", | ||
"description": "simple logger model", | ||
@@ -69,6 +69,6 @@ "keywords": [ | ||
"@zcorky/moment": "^1.0.12", | ||
"@zodash/format": "^1.2.5", | ||
"@zodash/onion": "^0.1.4" | ||
"@zodash/format": "^1.2.6", | ||
"@zodash/onion": "^0.1.5" | ||
}, | ||
"gitHead": "36ae103b292f402d459b7c9eb6e63fe6ea93eb2b" | ||
"gitHead": "476cc71bdf3cc5914d55495eaa9e3d07472885d9" | ||
} |
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
24387
256
Updated@zodash/format@^1.2.6
Updated@zodash/onion@^0.1.5