summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorxue <>2008-03-24 20:39:47 +0000
committerxue <>2008-03-24 20:39:47 +0000
commit8c5d1e640a220a138294575c5770c7e9da0d46a3 (patch)
tree974de4183944a7c53ff75ab16ba509656679cbd3 /framework
parente19ac3ebece43a1e2b7d2c3aa1df1e311da8c7c9 (diff)
fixed #819
Diffstat (limited to 'framework')
-rw-r--r--framework/Util/TLogRouter.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php
index 3a08fd63..50789011 100644
--- a/framework/Util/TLogRouter.php
+++ b/framework/Util/TLogRouter.php
@@ -277,7 +277,7 @@ abstract class TLogRoute extends TApplicationComponent
*/
protected function formatLogMessage($message,$level,$category,$time)
{
- return @date('M d H:i:s',$time).' ['.$this->getLevelName($level).'] ['.$category.'] '.$message."\n";
+ return @gmdate('M d H:i:s',$time).' ['.$this->getLevelName($level).'] ['.$category.'] '.$message."\n";
}
/**
@@ -915,12 +915,12 @@ class TFirebugLogRoute extends TBrowserLogRoute
if (typeof(console) == 'object')
{
console.log ("[Cumulated Time] [Time] [Level] [Category] [Message]");
-
+
EOD;
return $string;
}
-
+
protected function renderMessage ($log, $info)
{
$logfunc = $this->getFirebugLoggingFunction($log[1]);
@@ -934,7 +934,7 @@ EOD;
return $string;
}
-
+
protected function renderFooter ()
{
$string = <<<EOD
@@ -946,10 +946,10 @@ EOD;
return $string;
}
-
+
protected function getFirebugLoggingFunction($level)
{
- switch ($level)
+ switch ($level)
{
case TLogger::DEBUG:
case TLogger::INFO:
@@ -964,6 +964,6 @@ EOD;
}
return 'console.log';
}
-
+
}
?> \ No newline at end of file