| 
														
															@@ -6,6 +6,7 @@ const file = require('./utils/file') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 const {logger, fileLogger} = require("./utils/logger"); 
														 | 
														
														 | 
														
															 const {logger, fileLogger} = require("./utils/logger"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 const {spawn, exec, fork, execSync} = require("child_process"); 
														 | 
														
														 | 
														
															 const {spawn, exec, fork, execSync} = require("child_process"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 const path = require("path"); 
														 | 
														
														 | 
														
															 const path = require("path"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 const {ka} = require("date-fns/locale"); 
														 | 
														
														 | 
														
															 const {ka} = require("date-fns/locale"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 const {getAppMap} = require("./robot"); 
														 | 
														
														 | 
														
															 const {getAppMap} = require("./robot"); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 const crypto = require('crypto'); 
														 | 
														
														 | 
														
															 const crypto = require('crypto'); 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -73,6 +74,9 @@ function init() { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         if (port !== -1) { 
														 | 
														
														 | 
														
															         if (port !== -1) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             var logPath = "./logs" + port 
														 | 
														
														 | 
														
															             var logPath = "./logs" + port 
														 | 
													
												
											
												
													
														| 
														 | 
														
															             logger.info(`日志相对地址:${logPath}`) 
														 | 
														
														 | 
														
															             logger.info(`日志相对地址:${logPath}`) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            // 将相对路径转换为绝对路径 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            const directoryPath = path.resolve(logPath); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            file.checkPathSync(directoryPath) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
												
													
														| 
														 | 
														
															             file.getLastFile(logPath, 10, (fileNameList) => { 
														 | 
														
														 | 
														
															             file.getLastFile(logPath, 10, (fileNameList) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															                 // logger.info('??1:', fileNameList); 
														 | 
														
														 | 
														
															                 // logger.info('??1:', fileNameList); 
														 |