mirror of
https://github.com/Seldaek/monolog.git
synced 2025-08-08 14:16:42 +02:00
update README
Change the calls from "addWarning" and "addError" to the new pattern "warning" and "error"
This commit is contained in:
@@ -37,8 +37,8 @@ $log = new Logger('name');
|
|||||||
$log->pushHandler(new StreamHandler('path/to/your.log', Logger::WARNING));
|
$log->pushHandler(new StreamHandler('path/to/your.log', Logger::WARNING));
|
||||||
|
|
||||||
// add records to the log
|
// add records to the log
|
||||||
$log->addWarning('Foo');
|
$log->warning('Foo');
|
||||||
$log->addError('Bar');
|
$log->error('Bar');
|
||||||
```
|
```
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
Reference in New Issue
Block a user