summaryrefslogtreecommitdiff
path: root/framework/Log
diff options
context:
space:
mode:
authorxue <>2006-01-05 05:35:55 +0000
committerxue <>2006-01-05 05:35:55 +0000
commit2d5b96ba9878ec36df7bb2af3493bb771c85b032 (patch)
tree0ebe72f5f7c3dc56d6a2c1a89b9d6820e3ecb1ce /framework/Log
parentc4279b69ac0f2fa30fdd661083cb753965ae2850 (diff)
Diffstat (limited to 'framework/Log')
-rw-r--r--framework/Log/TLogManager.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/Log/TLogManager.php b/framework/Log/TLogManager.php
index dba96e3a..8ab170ed 100644
--- a/framework/Log/TLogManager.php
+++ b/framework/Log/TLogManager.php
@@ -3,7 +3,7 @@
abstract class TLogManager extends TModule
{
protected $defaultSeverity = 'INFO | DEBUG | NOTICE | WARNING | ERROR | FATAL';
-
+
protected $config;
public function init($xml)
@@ -42,7 +42,7 @@ abstract class TLogManager extends TModule
$log->$map($logFilter, $logWriter);
}
- if($filters->Length < 1)
+ if($filters->getCount() < 1)
{
$logFilter = new ezcLogFilter();
$logFilter->severity = $this->getFilterSeverity();
@@ -55,9 +55,9 @@ abstract class TLogManager extends TModule
{
switch($xml->getAttribute('destination'))
{
- case 'file' :
+ case 'file' :
return TEzcLoggerUnixFileWriterFactory::create($xml);
- default :
+ default :
throw new TException('invalid_log_destination');
}
}
@@ -69,7 +69,7 @@ abstract class TLogManager extends TModule
$serverities = explode("|", $string);
$mask = 0;
foreach($serverities as $Severity)
- $mask = $mask | $this->getSeverity($Severity);
+ $mask = $mask | $this->getSeverity($Severity);
return $mask;
}
@@ -107,7 +107,7 @@ class TEzcLoggerUnixFileWriterFactory
TEzcLoggerLoader::using('ezcLogWriter');
TEzcLoggerLoader::using('ezcLogWriterFile');
TEzcLoggerLoader::using('ezcLogWriterUnixFile');
-
+
$path = $xml->getAttribute('directory');
$dir = Prado::getPathOfNamespace($path);
$file = $xml->getAttribute('filename');