summaryrefslogtreecommitdiffstats
path: root/doc/01-usage.md
diff options
context:
space:
mode:
Diffstat (limited to 'doc/01-usage.md')
-rw-r--r--doc/01-usage.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/01-usage.md b/doc/01-usage.md
index 8e2551f..ec9bbbb 100644
--- a/doc/01-usage.md
+++ b/doc/01-usage.md
@@ -24,7 +24,7 @@ to load Monolog classes.
## Core Concepts
Every `Logger` instance has a channel (name) and a stack of handlers. Whenever
-you add a record to the logger, it traverses the handler stack. Each handler
+you add a [record](message-structure.md) to the logger, it traverses the handler stack. Each handler
decides whether it fully handled the record, and if so, the propagation of the
record ends there.
@@ -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
@@ -118,7 +118,7 @@ you want to override other configured loggers.
## Adding extra data in the records
-Monolog provides two different ways to add extra informations along the simple
+Monolog provides two different ways to add extra information along the simple
textual message.
### Using the logging context
@@ -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