[pLog-svn] r4181 - plog/branches/lifetype-1.1.2/class/logger
oscar at devel.lifetype.net
oscar at devel.lifetype.net
Tue Oct 24 21:39:22 GMT 2006
Author: oscar
Date: 2006-10-24 21:39:21 +0000 (Tue, 24 Oct 2006)
New Revision: 4181
Modified:
plog/branches/lifetype-1.1.2/class/logger/loggermanager.class.php
Log:
Reverted the changes of rev 4173 as they were causing some really weird issues in our development server.
Modified: plog/branches/lifetype-1.1.2/class/logger/loggermanager.class.php
===================================================================
--- plog/branches/lifetype-1.1.2/class/logger/loggermanager.class.php 2006-10-24 20:35:05 UTC (rev 4180)
+++ plog/branches/lifetype-1.1.2/class/logger/loggermanager.class.php 2006-10-24 21:39:21 UTC (rev 4181)
@@ -197,21 +197,10 @@
$instance =& LoggerManager::getInstance();
if (isset($instance->loggers[$name])) {
- $logger = $instance->loggers[$name];
+ return $instance->loggers[$name];
}
- else {
- // return a dummy logger that will output things to screen, in case the logger that
- // was requested does not exist... This should be a better option than
- // silently returning NULL or a null logger
- $properties = Array( "prio" => "info" );
- $layout = new PatternLayout( "%t%n%d %N - [%f:%l (%c:%F)] %m%n" );
- $appenderObject = LoggerManager::createAppenderInstance( "stdout", $layout, $properties );
- // create the logger, set the appender and it to the list
- $logger = new Logger( $properties );
- $logger->addAppender( $appenderObject );
- }
- return( $logger );
- }
+ return NULL;
+ }
}
?>
More information about the pLog-svn
mailing list