1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-06 05:07:36 +02:00

update README

Change the calls from "addWarning" and "addError" to the new pattern "warning" and "error"
This commit is contained in:
Jonathan André Schweder
2016-04-25 08:23:57 -03:00
parent 3ce314cc92
commit d686f25f6c

View File

@@ -37,8 +37,8 @@ $log = new Logger('name');
$log->pushHandler(new StreamHandler('path/to/your.log', Logger::WARNING));
// add records to the log
$log->addWarning('Foo');
$log->addError('Bar');
$log->warning('Foo');
$log->error('Bar');
```
## Documentation