diff --git a/logger/FileLogger.php b/logger/FileLogger.php index ec16515..f92a965 100644 --- a/logger/FileLogger.php +++ b/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");