Authored by 郝肖肖

支付 日志 目录

@@ -24,7 +24,7 @@ class UdpLog @@ -24,7 +24,7 @@ class UdpLog
24 //influxdb measurement 24 //influxdb measurement
25 public static $measurement = 'php_log'; 25 public static $measurement = 'php_log';
26 26
27 - public static $filePath = '/Data/logs/'; 27 + public static $filePath = '/Data/logs/pc_pay';
28 28
29 const RECORD_MODE_FILE = 'FILE'; 29 const RECORD_MODE_FILE = 'FILE';
30 const RECORD_MODE_UDP = 'UDP'; 30 const RECORD_MODE_UDP = 'UDP';
@@ -71,7 +71,7 @@ class UdpLog @@ -71,7 +71,7 @@ class UdpLog
71 */ 71 */
72 private static function fileLog($level, $message) 72 private static function fileLog($level, $message)
73 { 73 {
74 - $filename = $level . '.log'; //日志文件 74 + $filename = $level .'-pc-' . date('Ymd', time()). '.log'; //日志文件
75 $logFile = self::createPath(self::$filePath, $filename); 75 $logFile = self::createPath(self::$filePath, $filename);
76 if (!file_exists(self::$filePath))//判断文件路径是否存在 76 if (!file_exists(self::$filePath))//判断文件路径是否存在
77 { 77 {