The LogWatch module provides a comprehensive server error log monitoring system for CMS Made Simple websites. This module seamlessly integrates with your server's error logs to display PHP errors, warnings, and notices in an organized, developer-friendly interface within the CMS admin panel, helping you quickly identify and resolve issues during development and production.
Features
- Support for multiple log sources: Apache, PHP ini, virtual host, and document root logs
- Custom Error Handler: captures PHP errors to a local protected log file when server logs aren't accessible
- Advanced log parsing using kassner/log-parser library for robust Apache log handling
- Reverse reader for efficient handling of large log files
- Grouped error view: identical errors consolidated with occurrence counts and timestamps
- Error type filtering: Fatal Error, Warning, Notice, Deprecated, and general Error types
- Paginated log display with 50 entries per page for optimal performance
- Modal popup interface for detailed error examination including stack traces
- CSV export functionality for external analysis and reporting
- File path and line number extraction for quick debugging navigation
- Read-only approach respecting server log file permissions
- Security hardened: log injection prevention, path traversal validation
Screenshots
