$this->saveParseLogger = new NullLogger();
}
+ /**
+ * @param LoggerInterface $saveParseLogger
+ */
+ public function setLogger( LoggerInterface $saveParseLogger ) {
+ $this->saveParseLogger = $saveParseLogger;
+ }
+
/**
* @param RevisionRecord $rev
* @param ParserOptions|null $options
},
'RevisionRenderer' => function ( MediaWikiServices $services ) : RevisionRenderer {
- return new RevisionRenderer( $services->getDBLoadBalancer() );
+ $renderer = new RevisionRenderer( $services->getDBLoadBalancer() );
+ $renderer->setLogger( LoggerFactory::getInstance( 'SaveParse' ) );
+
+ return $renderer;
},
'RevisionStore' => function ( MediaWikiServices $services ) : RevisionStore {