[email protected]
[Top] [All Lists]

Re: Recommended usage for OO

Subject: Re: Recommended usage for OO
From: "Ondra Medek"
Date: Mon, 23 Jul 2007 09:32:04 +1200
class B extends A {
  public static function someStaticFunction() {
    $debug = LoggerManager::getLogger('example');
yes, thanks, so is it better to do LoggerManager::getLogger(...) in
each method (both, virtual and static), or may it be a significant
performance decrease?

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.

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