Description
Hi
LoggerRepositories were recently removed, or? One occurence in LoggerLoggingEvent is still left.
Fatal error: Call to undefined method LoggerRoot::getLoggerRepository() in /srv/home/james/workspace/log4php/src/main/php/LoggerLoggingEvent.php on line 266
Call Stack:
0.0007 123248 1.
() /srv/home/james/workspace/log4php/src/examples/php/renderer_default.php:0
0.0217 1035952 2. Logger->debug() /srv/home/james/workspace/log4php/src/examples/php/renderer_default.php:38
0.0217 1036280 3. Logger->logLevel() /srv/home/james/workspace/log4php/src/main/php/Logger.php:215
0.0217 1036664 4. Logger->forcedLog() /srv/home/james/workspace/log4php/src/main/php/Logger.php:330
0.0218 1039616 5. Logger->callAppenders() /srv/home/james/workspace/log4php/src/main/php/Logger.php:272
0.0218 1040432 6. LoggerAppender->doAppend() /srv/home/james/workspace/log4php/src/main/php/Logger.php:409
0.0218 1040688 7. LoggerAppenderEcho->append() /srv/home/james/workspace/log4php/src/main/php/LoggerAppender.php:134
0.0218 1040816 8. LoggerLayoutSimple->format() /srv/home/james/workspace/log4php/src/main/php/appenders/LoggerAppenderEcho.php:77
0.0219 1041136 9. LoggerLoggingEvent->getRenderedMessage() /srv/home/james/workspace/log4php/src/main/php/layouts/LoggerLayoutSimple.php:57
Reproducable with:
log4php.renderer.MyClass = MyClassRenderer
log4php.appender.default = LoggerAppenderEcho
log4php.appender.default.layout = LoggerLayoutSimple
log4php.rootLogger = DEBUG, default
and:
require_once dirname(_FILE_).'/../../main/php/Logger.php';
Logger::configure(dirname(_FILE_).'/../resources/renderer_default.properties');
class Person {
public $firstName = 'John';
public $lastName = 'Doe';
}
class MyClassRenderer implements LoggerRendererObject {
public function render($o)
}
$person = new Person();
$logger = Logger::getRootLogger();
$logger->debug("Now comes the current person object:");
$logger->debug($person);