1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-02-23 22:42:38 +01:00
php-monolog/README.mdown

44 lines
826 B
Plaintext
Raw Normal View History

2011-02-17 03:04:58 +01:00
Monolog - Logging for PHP 5.3
=============================
Usage
-----
use Monolog\Logger;
use Monolog\Handler\FileHandler;
2011-02-17 03:04:58 +01:00
// create a log channel
$log = new Logger('name');
$log->pushHandler(new FileHandler('path/to/your.log', Logger::WARNING));
2011-02-17 03:04:58 +01:00
// add messages to the log
$log->addWarning('Foo');
$log->addError('Bar');
2011-02-17 03:04:58 +01:00
Todo
----
- Log rotation for RotatingFileHandler
2011-02-17 03:04:58 +01:00
- FirePHP writer
- Syslog writer
Author
------
Jordi Boggiano - <j.boggiano@seld.be> - <http://twitter.com/seldaek>
License
-------
2011-02-17 11:37:11 +01:00
Monolog is licensed under the MIT License - see the LICENSE file for details
2011-02-17 03:04:58 +01:00
Requirements
------------
Any flavor of PHP 5.3 should do
Acknowledgements
----------------
This library is heavily inspired by Python's Logbook library, although it has been adapted to fit in PHP.