diff options
Diffstat (limited to 'doc/04-extending.md')
-rw-r--r-- | doc/04-extending.md | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/04-extending.md b/doc/04-extending.md index ebd9104..ffb0700 100644 --- a/doc/04-extending.md +++ b/doc/04-extending.md @@ -2,6 +2,13 @@ Monolog is fully extensible, allowing you to adapt your logger to your needs. +## Understanding log records + +See [the page about log records](message-structure.md) to learn what makes up +a log record before going further. This is essential to understand as all +Handlers/Formatters/Processors need to deal with log records in one way or +another. + ## Writing your own handler Monolog provides many built-in handlers. But if the one you need does not @@ -66,7 +73,7 @@ You can now use this handler in your logger: $logger->pushHandler(new PDOHandler(new PDO('sqlite:logs.sqlite'))); // You can now use your logger -$logger->addInfo('My logger is now ready'); +$logger->info('My logger is now ready'); ``` The `Monolog\Handler\AbstractProcessingHandler` class provides most of the |