Recommend this page to a friend! |
Download |
Info | Screenshots | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Ratings | Unique User Downloads | Download Rankings | ||||
65% | Total: 4,567 | All time: 619 This week: 571 |
Version | License | Categories | ||||
logwatcher 1.0.0 | BSD License | Logging, Security |
Description | Author | ||||||||
This class is meant to poll log files and take any newly added lines and send them to a given watcher e-mail address. |
|
Screenshots (1) | ||
Files (7) |
File | Role | Description |
---|---|---|
error_handler.php | Aux. | Example of an error handler function that logs the error message, the file name, line number, function name, class name, including backtrace of all the function calls that lead to the line where the error occurred. |
log_watcher_class.html | Doc. | Class documentation extracted from inline meta-document comments |
log_watcher_class.php | Class | Log watcher class |
php.ini | Data | Sample PHP configuration with options set for maximum logging security in a production environment |
php_error_log.crontab | Data | Example of crontab line to execute the example log script to watch the PHP error log |
test_log_watcher.php | Example | Example of how to setup the class to watch a given log file, e-mail the newly added lines, if any, and exit |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
logwatcher-2006-01-11.zip 20KB | |
logwatcher-2006-01-11.tar.gz | |
Install with Composer |
Needed packages | ||
Class | Download | Why it is needed | Dependency |
---|---|---|---|
MIME E-mail message sending | .zip .tar.gz | When the mail delivery method is meant to replaced by the urgent mail function | Optional |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
0% |
|
|
User Ratings | ||||||||||||||||||||||||||||||
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.
Related pages |
Documentation on the PHP manual about error handling and logging |
Pages that reference this package |
Sure, all errors should be enabled even in production, except maybe for E_STRICT which is usually a bit too pedantic... |