1
0
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:
Jordi Boggiano 2012-08-09 16:13:27 -07:00
commit f0fc9a72d3

View File

@ -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