1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-08-05 12:47:39 +02:00

Replacing the outdated add* methods in the docs with the PSR-3 compliant methods.

This commit is contained in:
StevenW
2017-01-07 13:27:27 -08:00
parent efb3fa354c
commit 2544676a41
5 changed files with 7 additions and 7 deletions

View File

@@ -97,7 +97,7 @@ $logger->pushHandler(new StreamHandler(__DIR__.'/my_app.log', Logger::DEBUG));
$logger->pushHandler(new FirePHPHandler());
// You can now use your logger
$logger->addInfo('My logger is now ready');
$logger->info('My logger is now ready');
```
Let's explain it. The first step is to create the logger instance which will
@@ -129,7 +129,7 @@ record:
```php
<?php
$logger->addInfo('Adding a new user', array('username' => 'Seldaek'));
$logger->info('Adding a new user', array('username' => 'Seldaek'));
```
Simple handlers (like the StreamHandler for instance) will simply format