Authored by 李奇

logger time

... ... @@ -89,14 +89,20 @@ module.exports = {
name: 'info',
level: 'info',
filename: '/Data/logs/yohobuy-node/info.log',
maxFiles: 14
maxFiles: 14,
timestamp() {
return new Date().toString();
}
},
errorFile: {
name: 'error',
level: 'error',
filename: '/Data/logs/yohobuy-node/error.log',
handleExceptions: true,
maxFiles: 7
maxFiles: 7,
timestamp() {
return new Date().toString();
}
},
udp: { // send by udp
measurement: 'yohobuy_node_log',
... ...