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 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 is related. This is useful in big applications (and is leveraged by
MonologBundle in Symfony2). You can then easily grep through log files for MonologBundle in Symfony2).
example to filter this or that type of log record.
Using different loggers with the same handlers allow to identify the logger Picture two loggers sharing a handler that writes to a single log file.
that issued the record (through the channel name) by keeping the same handlers Channels would then allow an identity of the logger that issues the record
(for instance to use a single log file). (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
<?php <?php