Author: grobmeier
Date: Tue Jul 28 06:20:50 2009
New Revision: 798414
URL: http://svn.apache.org/viewvc?rev=798414&view=rev
Log:
reenabled getLogger and getRootLogger.
Needs more discussion
Modified:
incubator/log4php/trunk/src/main/php/Logger.php
Modified: incubator/log4php/trunk/src/main/php/Logger.php
URL:
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/main/php/Logger.php?rev=798414&r1=798413&r2=798414&view=diff
==============================================================================
--- incubator/log4php/trunk/src/main/php/Logger.php (original)
+++ incubator/log4php/trunk/src/main/php/Logger.php Tue Jul 28 06:20:50 2009
@@ -235,19 +235,19 @@
return $this->level;
}
-// /**
-// * Get a Logger by name (Delegate to {...@link LoggerManager})
-// *
-// * @param string $name logger name
-// * @param LoggerFactory $factory a {...@link LoggerFactory} instance or
null
-// * @return Logger
-// * @static
-// */
-// // TODO: remove method? confusing design
-// public function getLogger($name) {
-// return LoggerManager::getLogger($name);
-// }
-//
+ /**
+ * Get a Logger by name (Delegate to {...@link LoggerManager})
+ *
+ * @param string $name logger name
+ * @param LoggerFactory $factory a {...@link LoggerFactory} instance or
null
+ * @return Logger
+ * @static
+ */
+ // TODO: remove method? confusing design
+ public function getLogger($name) {
+ return LoggerManager::getLogger($name);
+ }
+
// /**
// * Return the the repository where this Category is attached.
// * @return LoggerHierarchy
@@ -281,15 +281,15 @@
// return LoggerManager::getRootLogger();
// }
-// /**
-// * get the Root Logger (Delegate to {...@link LoggerManager})
-// * @return LoggerRoot
-// * @static
-// */
-// // TODO: remove method? confusing design
-// public static function getRootLogger() {
-// return LoggerManager::getRootLogger();
-// }
+ /**
+ * get the Root Logger (Delegate to {...@link LoggerManager})
+ * @return LoggerRoot
+ * @static
+ */
+ // TODO: remove method? confusing design
+ public static function getRootLogger() {
+ return LoggerManager::getRootLogger();
+ }
/**
* Is the appender passed as parameter attached to this category?