mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-23 22:42:38 +01:00
Updated README
This commit is contained in:
parent
d178bdce01
commit
20110bfced
@ -5,11 +5,11 @@ Usage
|
||||
-----
|
||||
|
||||
use Monolog\Logger;
|
||||
use Monolog\Handler\FileHandler;
|
||||
use Monolog\Handler\StreamHandler;
|
||||
|
||||
// create a log channel
|
||||
$log = new Logger('name');
|
||||
$log->pushHandler(new FileHandler('path/to/your.log', Logger::WARNING));
|
||||
$log->pushHandler(new StreamHandler('path/to/your.log', Logger::WARNING));
|
||||
|
||||
// add records to the log
|
||||
$log->addWarning('Foo');
|
||||
@ -38,8 +38,7 @@ Todo
|
||||
|
||||
- Log rotation for RotatingFileHandler and TimedRotatingFileHandler
|
||||
- MailHandler
|
||||
- FirePHP writer
|
||||
- Syslog writer
|
||||
- FirePHPHandler
|
||||
|
||||
Requirements
|
||||
------------
|
||||
@ -50,6 +49,7 @@ Author
|
||||
------
|
||||
|
||||
Jordi Boggiano - <j.boggiano@seld.be> - <http://twitter.com/seldaek>
|
||||
See also the list of [contributors](https://github.com/Seldaek/monolog/contributors) which participated in this project.
|
||||
|
||||
License
|
||||
-------
|
||||
|
Loading…
x
Reference in New Issue
Block a user