Browse Source

Изменен FileLogger для возможности расширения класса

namespace
Alexander Demidov 11 years ago
committed by Alexander Demidov
parent
commit
10c68143cb
  1. 7
      logger/FileLogger.php

7
logger/FileLogger.php

@ -23,9 +23,14 @@ class FileLogger extends Logger
$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)
{
$out = microtime(true) . " \t: " . $this->pid . trim($message) . "\r\n";
$out = $this->generateOutString($message);
if (!$this->handler) {
$this->handler = @fopen($this->file_path, "a");

Loading…
Cancel
Save