|
@@ -93,10 +93,10 @@ function init() {
|
|
let result = [];
|
|
let result = [];
|
|
if (port !== -1) {
|
|
if (port !== -1) {
|
|
var logPath = "./logs" + port
|
|
var logPath = "./logs" + port
|
|
- logger.info(`日志相对地址:${logPath}`)
|
|
|
|
// 将相对路径转换为绝对路径
|
|
// 将相对路径转换为绝对路径
|
|
const directoryPath = path.resolve(logPath);
|
|
const directoryPath = path.resolve(logPath);
|
|
file.checkPathSync(directoryPath)
|
|
file.checkPathSync(directoryPath)
|
|
|
|
+ logger.info(`日志相对地址:${logPath}`)
|
|
|
|
|
|
file.getLastFile(logPath, 10, (fileNameList) => {
|
|
file.getLastFile(logPath, 10, (fileNameList) => {
|
|
logger.info('??1:', fileNameList);
|
|
logger.info('??1:', fileNameList);
|