Author: grobmeier
Date: Fri Aug 21 18:52:56 2009
New Revision: 806674

URL: http://svn.apache.org/viewvc?rev=806674&view=rev
Log:
updated site to new usage

Modified:
    incubator/log4php/trunk/src/site/apt/quickstart.apt
    incubator/log4php/trunk/src/site/apt/roadmap.apt
    incubator/log4php/trunk/src/site/apt/upgrading.apt

Modified: incubator/log4php/trunk/src/site/apt/quickstart.apt
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/site/apt/quickstart.apt?rev=806674&r1=806673&r2=806674&view=diff
==============================================================================
--- incubator/log4php/trunk/src/site/apt/quickstart.apt (original)
+++ incubator/log4php/trunk/src/site/apt/quickstart.apt Fri Aug 21 18:52:56 2009
@@ -50,10 +50,9 @@
   You just want logging to stdout?
 
 +--
-  define('LOG4PHP_CONFIGURATOR_CLASS', 'LoggerConfiguratorBasic'); 
-  require_once('log4php/LoggerManager.php');
+  require_once('log4php/Logger.php');
   
-  $logger = LoggerManager::getLogger("main");
+  $logger = Logger::getLogger("main");
   $logger->info("foo");
   $logger->warn("bar");
 +--
@@ -88,19 +87,19 @@
   framework for logging.
 
 +--
-  define('LOG4PHP_CONFIGURATION', 'log4php.properties');
-  require_once('log4php/LoggerManager.php');
+  require_once('log4php/Logger.php');
+  Logger::configure('log4php.properties');
   
   class MyClass {
      private $logger;
      
      public function __construct() {
-         $this->logger = LoggerManager::getLogger(__CLASS__);
+         $this->logger = Logger::getLogger(__CLASS__);
          $this->logger->debug('currently in constructor');
      }
   } 
   
-  $logger = LoggerManager::getLogger('main');
+  $logger = Logger::getLogger('main');
   $logger->info('below warn and thus not printed');
   
   new MyClass();

Modified: incubator/log4php/trunk/src/site/apt/roadmap.apt
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/site/apt/roadmap.apt?rev=806674&r1=806673&r2=806674&view=diff
==============================================================================
--- incubator/log4php/trunk/src/site/apt/roadmap.apt (original)
+++ incubator/log4php/trunk/src/site/apt/roadmap.apt Fri Aug 21 18:52:56 2009
@@ -20,6 +20,10 @@
  4 June 2007
  ------
 
-apache-log4php Roadmap
+Apache Log4PHP Roadmap
 
-  TODO
+  Please see:
+  
+  * https://issues.apache.org/jira/browse/LOG4PHP
+  
+  * http://wiki.apache.org/logging/Log4PHP/TODO

Modified: incubator/log4php/trunk/src/site/apt/upgrading.apt
URL: 
http://svn.apache.org/viewvc/incubator/log4php/trunk/src/site/apt/upgrading.apt?rev=806674&r1=806673&r2=806674&view=diff
==============================================================================
--- incubator/log4php/trunk/src/site/apt/upgrading.apt (original)
+++ incubator/log4php/trunk/src/site/apt/upgrading.apt Fri Aug 21 18:52:56 2009
@@ -30,4 +30,6 @@
   * LoggerHierarchy is not a singleton anymore by default. 
   
   * Log4PHP logs to std out by default
+  
+  * The old constants LOG4PHP_CONFIGURATION and similar are not longer valid. 
Please use Logger::configure for configuring Log4PHP
   
\ No newline at end of file


Reply via email to