Add CliLogger.generateOutString() for extend this class.

This commit is contained in:
Alexander Demidov
2013-09-16 11:28:09 +04:00
parent 4b31df52c3
commit a51545268d

View File

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