[email protected]
[Top] [All Lists]

Recommended usage for OO

Subject: Recommended usage for OO
From: "Ondra Medek"
Date: Sat, 21 Jul 2007 12:33:28 +1200
Hi,

I am using Log4PHP for a project in PHP 5. I initialise it in every class:

class B extends A{
 public $_logger;

 function __construct(...) {
   if (!$this->_logger) {
     $this->_logger =& LoggerManager::getLogger(__CLASS__ . '.' .
get_class($this));
   }
   parent::__construct(...);
 }

This is fine, when I use virtual methods, but I cannot use it in the
static methods. How do you use Log4PHP in your projects?

BTW. You have also some broken links at your page
http://incubator.apache.org/projects/log4php.html
(Website link, Mailing list (un) subscribe links)


--
Ondra Medek

<Prev in Thread] Current Thread [Next in Thread>