fastify-logger
Advanced tools
@@ -181,3 +181,3 @@ | ||
| plusName = `${date.getFullYear()}-${date.getMonth() + | ||
| 1}-${date.getDate()}${this.options.logrotator.hourDelimiter}${date.getHours()}}` | ||
| 1}-${date.getDate()}${this.options.logrotator.hourDelimiter}${date.getHours()}` | ||
| } else { | ||
@@ -187,3 +187,3 @@ plusName = `${date.getFullYear()}-${date.getMonth() + | ||
| } | ||
| return plusName; | ||
| return `.${plusName}`; | ||
| } | ||
@@ -208,4 +208,4 @@ | ||
| if (targetExists) { | ||
| const err = new Error(`targetFile ${targetPath} exists!!!`) | ||
| throw err | ||
| console.log(`targetFile ${targetPath} exists!!!`) | ||
| return | ||
| } | ||
@@ -212,0 +212,0 @@ await fileRename(srcPath, targetPath) |
+1
-1
| { | ||
| "name": "fastify-logger", | ||
| "version": "1.0.0", | ||
| "version": "1.0.1", | ||
| "description": "fastify 框架的logger", | ||
@@ -5,0 +5,0 @@ "main": "lib/logger.js", |
Sorry, the diff of this file is not supported yet
12012
-33.88%5
-16.67%