mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-23 17:46:09 +02:00
Replacing the outdated add* methods in the docs with the PSR-3 compliant methods.
This commit is contained in:
@@ -33,7 +33,7 @@ use PhpConsole\Helper;
|
||||
* $logger = new \Monolog\Logger('all', array(new \Monolog\Handler\PHPConsoleHandler()));
|
||||
* \Monolog\ErrorHandler::register($logger);
|
||||
* echo $undefinedVar;
|
||||
* $logger->addDebug('SELECT * FROM users', array('db', 'time' => 0.012));
|
||||
* $logger->debug('SELECT * FROM users', array('db', 'time' => 0.012));
|
||||
* PC::debug($_SERVER); // PHP Console debugger for any type of vars
|
||||
*
|
||||
* @author Sergey Barbushin https://www.linkedin.com/in/barbushin
|
||||
|
@@ -28,8 +28,8 @@ use InvalidArgumentException;
|
||||
*
|
||||
* function testLogger()
|
||||
* {
|
||||
* Monolog\Registry::api()->addError('Sent to $api Logger instance');
|
||||
* Monolog\Registry::application()->addError('Sent to $application Logger instance');
|
||||
* Monolog\Registry::api()->error('Sent to $api Logger instance');
|
||||
* Monolog\Registry::application()->error('Sent to $application Logger instance');
|
||||
* }
|
||||
* </code>
|
||||
*
|
||||
|
Reference in New Issue
Block a user