[email protected]
[Top] [All Lists]

Re: Recommended usage for OO

Subject: Re: Recommended usage for OO
From: "Ondra Medek"
Date: Tue, 24 Jul 2007 09:10:40 +1200

On 7/24/07, Marco V. <[email protected]> wrote:
> 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');


Ondra Medek

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