Server rental store

Logging System

# Logging System

This article details the logging system used on our MediaWiki installation. Proper logging is crucial for troubleshooting, security auditing, and performance monitoring. This guide is intended for newcomers to the server administration aspects of the wiki.

Overview

Our MediaWiki instance utilizes a tiered logging approach. We primarily leverage the built-in PHP logging mechanisms, coupled with system-level logging via `syslog` and file rotation. This combination provides a robust and flexible system for capturing a wide range of events. Understanding the configuration options is essential for effective maintenance and diagnostics. We also utilize Special:Log for user-centric logs, but this article focuses on the underlying server-side logging. Proper configuration of logging avoids filling up disk space, and allows for quick diagnosis of issues. Refer to the Manual:Logging page for a broader overview of logging within MediaWiki.

PHP Logging Configuration

MediaWiki's core logging is configured through the `$wgDebugLogGroups` and `$wgDebugLogFile` variables in `LocalSettings.php`. These settings control which debugging messages are recorded and where they are stored.

The `$wgDebugLogGroups` array defines the types of debugging messages to capture. Common groups include:

⚠️ *Note: All benchmark scores are approximate and may vary based on configuration. Server availability subject to stock.* ⚠️