mirror of
https://gitee.com/dromara/electron-egg.git
synced 2026-05-14 11:52:07 +08:00
日志分割
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
'use strict';
|
||||
|
||||
const dayjs = require('dayjs');
|
||||
const path = require('path');
|
||||
|
||||
/**
|
||||
@@ -65,8 +64,15 @@ module.exports = (appInfo) => {
|
||||
* ee框架日志
|
||||
*/
|
||||
config.logger = {
|
||||
appLogName: `ee-${dayjs().format('YYYY-MM-DD')}.log`,
|
||||
errorLogName: `ee-error-${dayjs().format('YYYY-MM-DD')}.log`
|
||||
encoding: 'utf8',
|
||||
level: 'INFO',
|
||||
outputJSON: false,
|
||||
buffer: true,
|
||||
enablePerformanceTimer: false,
|
||||
rotator: 'day',
|
||||
appLogName: 'ee.log',
|
||||
coreLogName: 'ee-core.log',
|
||||
errorLogName: 'ee-error.log'
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user