mirror of
https://github.com/Seldaek/monolog.git
synced 2025-02-23 22:42:38 +01:00
Merge pull request #101 from cordoval/patch-1
rephrased for clarity and simplicity
This commit is contained in:
commit
f0fc9a72d3
10
doc/usage.md
10
doc/usage.md
@ -94,12 +94,12 @@ Leveraging channels
|
||||
|
||||
Channels are a great way to identify to which part of the application a record
|
||||
is related. This is useful in big applications (and is leveraged by
|
||||
MonologBundle in Symfony2). You can then easily grep through log files for
|
||||
example to filter this or that type of log record.
|
||||
MonologBundle in Symfony2).
|
||||
|
||||
Using different loggers with the same handlers allow to identify the logger
|
||||
that issued the record (through the channel name) by keeping the same handlers
|
||||
(for instance to use a single log file).
|
||||
Picture two loggers sharing a handler that writes to a single log file.
|
||||
Channels would then allow an identity of the logger that issues the record
|
||||
(distinguishable through the channel's name). You can then easily grep through
|
||||
the log files filtering this or that type of log record.
|
||||
|
||||
```php
|
||||
<?php
|
||||
|
Loading…
x
Reference in New Issue
Block a user