Manual:Log
Logging can be extremely helpful for a variety of audiences (users, site admins, developers) and purposes (monitoring events, tracking errors, development, building statistics, etc.).
Action logs
A wiki action such as a page move, user block, file upload, etc., often triggers the creation of a log that is intended for the benefit of users and/or site admins.
- Such logs are stored in the The
logging
table of the database. - If not restricted, these logs are typically made accessible on the wiki, e.g.
- on special pages, such as Special:Log - see Manual:Logging to Special:Log. Some logs may be published to watchlists and recent changes.
- over the API
- See also Manual:Log actions.
PHP
Most of the relevant PHP classes are in the folder /includes/logging/
(1.40, 1.39).
Hooks include :
Logging for development and administration
As a developer, you may want to keep logs for the purpose of debugging, testing or diagnostics. You may also want your users to be able to keep logs as an aid to debugging software.
- Manual:How to debug - offers general information for site admins and developers.
- Manual:Structured logging - offers information for developers.