[email protected]
[Top] [All Lists]

Re: Recommended usage for OO

Subject: Re: Recommended usage for OO
From: "Marco V."
Date: Mon, 23 Jul 2007 15:35:15 +0200
As far as I remember in Java, most of the people initialize Log4J like:
public class MyClass {
  static Logger logger = Logger.getLogger(MyClass.class);
but it is not possible in PHP.

Yes, You can.

class A {

   public static $logger;


A::$logger = LoggerManager::getLogger('A');


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