Изменен FileLogger для возможности расширения класса
This commit is contained in:
@ -23,9 +23,14 @@ class FileLogger extends Logger
|
|||||||
$this->file_path = Config::get('Logger')->filepath;
|
$this->file_path = Config::get('Logger')->filepath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected function generateOutString($message)
|
||||||
|
{
|
||||||
|
return microtime(true) . " \t: " . $this->pid . trim($message) . "\r\n";
|
||||||
|
}
|
||||||
|
|
||||||
protected function concreteLog($message)
|
protected function concreteLog($message)
|
||||||
{
|
{
|
||||||
$out = microtime(true) . " \t: " . $this->pid . trim($message) . "\r\n";
|
$out = $this->generateOutString($message);
|
||||||
|
|
||||||
if (!$this->handler) {
|
if (!$this->handler) {
|
||||||
$this->handler = @fopen($this->file_path, "a");
|
$this->handler = @fopen($this->file_path, "a");
|
||||||
|
Reference in New Issue
Block a user