summaryrefslogtreecommitdiff
path: root/framework/Util
diff options
context:
space:
mode:
authorxue <>2007-08-06 18:58:55 +0000
committerxue <>2007-08-06 18:58:55 +0000
commitedfdfdd1cbf6d597551d4128e7e11d6d92bcdf95 (patch)
tree9a39721593e768419fb58c8b21e88ff4748bb0ae /framework/Util
parent1031b56f982f973f85cb3e1528f7bcbba662778f (diff)
fixed #685
Diffstat (limited to 'framework/Util')
-rw-r--r--framework/Util/TLogRouter.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php
index da2b06f6..ffbeb175 100644
--- a/framework/Util/TLogRouter.php
+++ b/framework/Util/TLogRouter.php
@@ -418,7 +418,7 @@ class TFileLogRoute extends TLogRoute
*/
protected function processLogs($logs)
{
- $logFile=$this->getLogPath().'/'.$this->getLogFile();
+ $logFile=$this->getLogPath().DIRECTORY_SEPARATOR.$this->getLogFile();
if(@filesize($logFile)>$this->_maxFileSize*1024)
$this->rotateFiles();
foreach($logs as $log)
@@ -430,7 +430,7 @@ class TFileLogRoute extends TLogRoute
*/
protected function rotateFiles()
{
- $file=$this->getLogPath().'/'.$this->getLogFile();
+ $file=$this->getLogPath().DIRECTORY_SEPARATOR.$this->getLogFile();
for($i=$this->_maxLogFiles;$i>0;--$i)
{
$rotateFile=$file.'.'.$i;