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.