* @file
* @author Niklas Laxström
*/
+
+use MediaWiki\Logger\LoggerFactory;
use MediaWiki\MediaWikiServices;
/**
public function toString( $format = null ) {
if ( $format === null ) {
$ex = new LogicException( __METHOD__ . ' using implicit format: ' . $this->format );
- \MediaWiki\Logger\LoggerFactory::getInstance( 'message-format' )->warning(
+ LoggerFactory::getInstance( 'message-format' )->warning(
$ex->getMessage(), [ 'exception' => $ex, 'format' => $this->format, 'key' => $this->key ] );
$format = $this->format;
}
if ( !is_scalar( $param ) ) {
$param = serialize( $param );
}
- \MediaWiki\Logger\LoggerFactory::getInstance( 'Bug58676' )->warning(
+ LoggerFactory::getInstance( 'Bug58676' )->warning(
'Invalid parameter for message "{msgkey}": {param}',
[
'exception' => new Exception,