Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix monolog channels #89

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Fix monolog channels #89

wants to merge 4 commits into from

Conversation

iambrosi
Copy link

Load Monolog services by default (if logging is enabled), and remove them afterwards in the compiler pass if Monolog is not available. This way, the log adapter will use the guzzle channel properly, assigned by the service definition and not the default channel app, as it does now.

Fixes #35

In my use case, I wanted to exclude all the Guzzle logs from a command output, but I couldn't since those logs were being logged into the app channel.

And remove these services if Monolog is not available. This way,
loggers can use the `guzzle` channel assigned by the service definition
and not the `app` channel.
Monolog only assigns log channels to those services that depend on the
`logger` service, not the `monolog.logger`.
@iambrosi
Copy link
Author

Any news on this?

@evgeny-s
Copy link

Any updates on this?
Could you please tell the way to put guzzle logs to separate channel and file?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants