Merge branch 'feature/docker' into 'gray'
logger time See merge request !91
Showing
1 changed file
with
8 additions
and
2 deletions
@@ -23,14 +23,20 @@ const config = { | @@ -23,14 +23,20 @@ const config = { | ||
23 | name: 'info', | 23 | name: 'info', |
24 | level: 'info', | 24 | level: 'info', |
25 | filename: '/Data/logs/yoho-shop-manage/info.log', | 25 | filename: '/Data/logs/yoho-shop-manage/info.log', |
26 | - maxFiles: 7 | 26 | + maxFiles: 7, |
27 | + timestamp() { | ||
28 | + return new Date().toString(); | ||
29 | + } | ||
27 | }, | 30 | }, |
28 | errorFile: { | 31 | errorFile: { |
29 | name: 'error', | 32 | name: 'error', |
30 | level: 'error', | 33 | level: 'error', |
31 | filename: '/Data/logs/yoho-shop-manage/error.log', | 34 | filename: '/Data/logs/yoho-shop-manage/error.log', |
32 | handleExceptions: true, | 35 | handleExceptions: true, |
33 | - maxFiles: 7 | 36 | + maxFiles: 7, |
37 | + timestamp() { | ||
38 | + return new Date().toString(); | ||
39 | + } | ||
34 | }, | 40 | }, |
35 | console: { | 41 | console: { |
36 | close: true, | 42 | close: true, |
-
Please register or login to post a comment