Add CliLogger.generateOutString() for extend this class.
This commit is contained in:
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user