|
|
@ -238,6 +238,7 @@ abstract class Target extends \yii\base\Component |
|
|
|
if (!is_string($text)) { |
|
|
|
if (!is_string($text)) { |
|
|
|
$text = var_export($text, true); |
|
|
|
$text = var_export($text, true); |
|
|
|
} |
|
|
|
} |
|
|
|
return date('Y/m/d H:i:s', $timestamp) . " [$level] [$category] $text\n"; |
|
|
|
$ip = isset($_SERVER['REMOTE_ADDR']) ? $_SERVER['REMOTE_ADDR'] : '127.0.0.1'; |
|
|
|
|
|
|
|
return date('Y/m/d H:i:s', $timestamp) . " [$ip] [$level] [$category] $text\n"; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|