diff --git a/logger/CliLogger.php b/logger/CliLogger.php index 121cda1..ddbc5cc 100644 --- a/logger/CliLogger.php +++ b/logger/CliLogger.php @@ -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; + } }