LogWatchdog is a production-ready Windows log monitoring solution that provides real-time monitoring, notifications, and automated log management capabilities.
- Real-time Log Monitoring: Monitor single files, multiple files, or entire folders
- Smart Notifications: Email alerts and system tray notifications for critical events
- Configurable Alerts: Customizable exception keywords and notification rules
- File Discovery: Automatic detection of new log files
- Windows Native: Designed specifically for Windows 10/11 systems
- Python 3.7+
- Windows 10/11 (primary target)
pip install logwatchdog
git clone https://github.com/pandiyarajk/logwatchdog.git
cd logwatchdog
pip install -r requirements.txt
Create log_config.ini
for monitoring settings:
[monitoring]
monitor_mode = folder # single, multiple, or folder
log_folder_path = C:\logs # Folder to monitor
log_file_extensions = *.log,*.txt # File extensions to monitor
file_discovery_interval = 30 # Check for new files every 30 seconds
empty_monitor_delay = 10 # Delay when no files found
[notifications]
email_enabled = true
smtp_server = smtp.gmail.com
smtp_port = 587
receiver_group = admin@company.com
system_tray_notifications = true
[alerts]
exception_keywords = Exception,Error,Failure,Fail,Fatal,Issue,Crash
Create .env
file for email authentication:
# Copy env_example.txt to .env and fill in your credentials
EMAIL_USER=your-email@gmail.com
EMAIL_PASSWORD=your-app-password
Security Note: Never commit the .env
file to version control.
# Start monitoring with default settings
logwatchdog
# Or use the short command
lwd
- Single File: Monitor one specific log file
- Multiple Files: Monitor multiple specific log files simultaneously
- Folder: Monitor all log files in a folder with automatic file detection
- Monitoring mode and file paths
- SMTP server configuration
- Alert keywords and notification settings
- File discovery intervals
EMAIL_USER
: Your email addressEMAIL_PASSWORD
: Your email password or app password
- User Guide: See the code comments and configuration examples
- Issues: GitHub Issues
- Support: pandiyarajk@live.com
We welcome contributions! Please see CONTRIBUTING.md for details.
This project is licensed under the MIT License - see the LICENSE file for details.
See CHANGELOG.md for version history.
Made with ❤️ by Pandiyaraj Karuppasamy
LogWatchdog - Your Windows Log Monitoring Companion