Manual:Logging to Special:Log

This page describes how to log actions to Special:Log. (Logging to the application log is covered at .)

Example
This illustrates how you would code Special:Log entries for extensions. The log messages appear on the Special:Log page and can be filtered by, for example, the log name, user, title or date range.

In your extension setup file
The following should work in extension.json:

For core logs, the configuration is in DefaultSettings.php.

In i18n/en.json file
Message documentation (qqq.json):

Adding links
To add a link to log entries, you should pass the page name etc. in the log parameters, and format that in your LogFormatter using. With other methods, non-html output (like UDP feed to IRC) will be broken.

See for an example LogFormatter with links.