日志处理

This commit is contained in:
luying
2020-12-04 10:19:42 +08:00
parent 3f89085588
commit 77ad3d93ed
6 changed files with 313 additions and 4 deletions
+7 -1
View File
@@ -21,7 +21,13 @@ const filePath = (_pinus as any).FILEPATH;
filePath.MASTER = '/config/master';
filePath.SERVER = '/config/servers';
filePath.CRON = '/config/crons';
filePath.LOG = '/config/log4js';
if(process.env.NODE_ENV == 'local') {
filePath.LOG = '/config/log4js.local';
// } else if(process.env.NODE_ENV == 'prod'){
// filePath.LOG = '/config/log4js.prod';
} else {
filePath.LOG = '/config/log4js.prod';
}
filePath.SERVER_PROTOS = '/config/serverProtos';
filePath.CLIENT_PROTOS = '/config/clientProtos';
filePath.MASTER_HA = '/config/masterha';