|
|
@ -14,8 +14,13 @@ class CliLogger extends Logger |
|
|
|
{ |
|
|
|
// Заменяем окончания строк на их символы
|
|
|
|
$message = str_replace(array("\r", "\n"), array('\r', '\n'), $message); |
|
|
|
$out = microtime(true) . " \t: " . $this->pid . trim($message) . PHP_EOL; |
|
|
|
$out = $this->generateOutString($message); |
|
|
|
print($out); |
|
|
|
} |
|
|
|
|
|
|
|
protected function generateOutString($message) |
|
|
|
{ |
|
|
|
return microtime(true) . " \t: " . $this->pid . trim($message) . PHP_EOL; |
|
|
|
} |
|
|
|
} |
|
|
|
|