26use Wikimedia\ObjectFactory;
145 if (
isset( $this->config[$key] ) ) {
148 $this->config[$key] =
$value;
151 if ( !
isset( $this->config[
'loggers'][
'@default'] ) ) {
152 $this->config[
'loggers'][
'@default'] = [
153 'handlers' => [
'@default' ],
155 if ( !
isset( $this->config[
'handlers'][
'@default'] ) ) {
156 $this->config[
'handlers'][
'@default'] = [
157 'class' => StreamHandler::class,
158 'args' => [
'php://stderr', Logger::ERROR ],
172 $this->singletons = [
191 if ( !
isset( $this->singletons[
'loggers'][$channel] ) ) {
194 $spec = $this->config[
'loggers'][$channel] ?? $this->config[
'loggers'][
'@default'];
197 $this->singletons[
'loggers'][$channel] =
$monolog;
200 return $this->singletons[
'loggers'][$channel];
210 $obj =
new Logger( $channel );
212 if (
isset( $spec[
'calls'] ) ) {
213 foreach ( $spec[
'calls'] as $method => $margs ) {
214 $obj->$method( ...$margs );
218 if (
isset( $spec[
'processors'] ) ) {
219 foreach ( $spec[
'processors'] as $processor ) {
220 $obj->pushProcessor( $this->
getProcessor( $processor ) );
224 if (
isset( $spec[
'handlers'] ) ) {
225 foreach ( $spec[
'handlers'] as
$handler ) {
226 $obj->pushHandler( $this->
getHandler( $handler ) );
238 if ( !
isset( $this->singletons[
'processors'][$name] ) ) {
239 $spec = $this->config[
'processors'][
$name];
240 $processor = ObjectFactory::getObjectFromSpec( $spec );
243 return $this->singletons[
'processors'][
$name];
252 if ( !
isset( $this->singletons[
'handlers'][$name] ) ) {
253 $spec = $this->config[
'handlers'][
$name];
254 $handler = ObjectFactory::getObjectFromSpec( $spec );
255 if (
isset( $spec[
'formatter'] ) ) {
260 if (
isset( $spec[
'buffer'] ) && $spec[
'buffer'] ) {
265 return $this->singletons[
'handlers'][
$name];
274 if ( !
isset( $this->singletons[
'formatters'][$name] ) ) {
275 $spec = $this->config[
'formatters'][
$name];
276 $formatter = ObjectFactory::getObjectFromSpec( $spec );
279 return $this->singletons[
'formatters'][
$name];
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output modifiable modifiable after all normalizations have been except for the $wgMaxImageArea check set to true or false to override the $wgMaxImageArea check result gives extension the possibility to transform it themselves $handler
Allows to change the fields on the form that will be generated $name
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))