We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 01a0871 commit 2e45aa6Copy full SHA for 2e45aa6
1 file changed
DqLog.php
@@ -12,7 +12,11 @@ class DqLog{
12
13
14
public static function writeLog($str,$flag=self::LOG_TYPE_NORMAL){
15
- $str = "[" . date('Y-m-d H:i:s') . "]PID=". DqMain::$pid.' '. $str;
+ $p_name='';
16
+ if(php_sapi_name()=='cli'){
17
+ $p_name = cli_get_process_title();
18
+ }
19
+ $str = "[" . date('Y-m-d H:i:s') . "]p_name=".$p_name.' '. $str;
20
$dir = self::getLogDir();
21
$seg=date('Ymd');
22
switch ($flag) {
0 commit comments