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