Ondra Medek wrote:
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?
Get the logger within the static method.
class B extends A {
public static function someStaticFunction() {
$debug = LoggerManager::getLogger('example');
}
}
BTW. You have also some broken links at your page http://incubator.apache.org/projects/log4php.html
Thanks! :) Regards, Knut Urdalen
