replaced \r\n with PHP_EOL in CliLogger
This commit is contained in:
@ -13,7 +13,7 @@ class CliLogger extends Logger
|
|||||||
protected function concreteLog($message)
|
protected function concreteLog($message)
|
||||||
{
|
{
|
||||||
// Заменяем окончания строк на их символы
|
// Заменяем окончания строк на их символы
|
||||||
$message = str_replace(array("\r", "\n"), array('\r', '\n'), $message);
|
$message = str_replace(array("\r\n"), array(PHP_EOL), $message);
|
||||||
$out = microtime(true) . " \t: " . $this->pid . trim($message) . PHP_EOL;
|
$out = microtime(true) . " \t: " . $this->pid . trim($message) . PHP_EOL;
|
||||||
print($out);
|
print($out);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user