修改配置:日志最多保留7天的日志,udp的发送到域名而非ip
Showing
1 changed file
with
3 additions
and
2 deletions
@@ -32,7 +32,8 @@ module.exports = { | @@ -32,7 +32,8 @@ module.exports = { | ||
32 | infoFile: { | 32 | infoFile: { |
33 | name: 'info', | 33 | name: 'info', |
34 | level: 'info', | 34 | level: 'info', |
35 | - filename: 'logs/info.log' | 35 | + filename: 'logs/info.log', |
36 | + maxFiles: 7 | ||
36 | }, | 37 | }, |
37 | errorFile: { | 38 | errorFile: { |
38 | name: 'error', | 39 | name: 'error', |
@@ -42,7 +43,7 @@ module.exports = { | @@ -42,7 +43,7 @@ module.exports = { | ||
42 | }, | 43 | }, |
43 | udp: { // send by udp | 44 | udp: { // send by udp |
44 | level: 'debug', // logger level | 45 | level: 'debug', // logger level |
45 | - host: '192.168.102.162', // influxdb host | 46 | + host: 'influxdb.yohoops.org', // influxdb host |
46 | port: '4444' // influxdb port | 47 | port: '4444' // influxdb port |
47 | }, | 48 | }, |
48 | console: { | 49 | console: { |
-
Please register or login to post a comment