[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

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__ . '.' .

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
(Website link, Mailing list (un) subscribe links)

Ondra Medek

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