From 10c68143cbc7025e3289934e9a96b0ab26ae776e Mon Sep 17 00:00:00 2001 From: Alexander Demidov Date: Thu, 18 Jul 2013 21:43:48 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B5=D0=BD=20Fi?= =?UTF-8?q?leLogger=20=D0=B4=D0=BB=D1=8F=20=D0=B2=D0=BE=D0=B7=D0=BC=D0=BE?= =?UTF-8?q?=D0=B6=D0=BD=D0=BE=D1=81=D1=82=D0=B8=20=D1=80=D0=B0=D1=81=D1=88?= =?UTF-8?q?=D0=B8=D1=80=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BA=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D1=81=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- logger/FileLogger.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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");