* See documentation in DefaultSettings.php for detailed explanations of each
* variable.
*
- * @see \\MediaWiki\\Logger\\LoggerFactory
+ * @see \MediaWiki\Logger\LoggerFactory
* @since 1.25
* @author Bryan Davis <bd808@wikimedia.org>
* @copyright © 2014 Bryan Davis and Wikimedia Foundation.
protected $channel;
/**
- * Convert Psr\\Log\\LogLevel constants into int for sane comparisons
+ * Convert \Psr\Log\LogLevel constants into int for sane comparisons
* These are the same values that Monlog uses
*
* @var array $levelMapping
LogLevel::EMERGENCY => 600,
);
-
/**
* @param string $channel
*/
MWDebug::debugMsg( $message, array( 'channel' => $this->channel ) + $context );
}
-
/**
* Determine if the given message should be emitted or not.
*
* @param string $channel
* @param string $message
- * @param string|int $level Psr\\Log\\LogEvent constant or Monlog level int
+ * @param string|int $level \Psr\Log\LogEvent constant or Monlog level int
* @param array $context
* @return bool True if message should be sent to disk/network, false
* otherwise
return $shouldEmit;
}
-
/**
* Format a message.
*
return self::interpolate( $text, $context );
}
-
/**
* Format a message as `wfDebug()` would have formatted it.
*
return "{$text}\n";
}
-
/**
* Format a message as `wfLogDBError()` would have formatted it.
*
return $text;
}
-
/**
* Format a message as `wfDebugLog() would have formatted it.
*
return $text;
}
-
/**
* Interpolate placeholders in logging message.
*
return $message;
}
-
/**
* Convert a logging context element to a string suitable for
* interpolation.
return '[Unknown ' . gettype( $item ) . ']';
}
-
/**
* Select the appropriate log output destination for the given log event.
*
return $destination;
}
-
/**
* Log to a file without getting "file size exceeded" signals.
*