You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thank you for this amazing bundle. It was great to find a tool to accomplish exactly what I was already working on. Much appreciated.
I got a question though. Is there a way to configure the Guzzle Logger Middleware to log into a different Monolog channel?
Usually I like to organize my application logs into different channels sometimes specific to some services just so I can tail logs for that service alone without doing any grep, etc.
Also, for some reason it looks like the formatter override is not working for me. Maybe I'm doing something wrong?
It seems that is appending instead of replacing.
Oh I see, it looks like you only allow to override the message itself, not the whole line.
renatogcarvalho [9:49 AM]
Ok, regarding the issue related with the Monolog channel I figured out how to configure it to log into a different file. Just for future reference for anybody that might be interested in accomplish this as well.
Created monolog.yml under /config (SF 4.1):
---- created from comment by renatogcarvalho (Symfony Dev Slack, #8p-guzzlebundle, 18/11/24, 9:49 AM) ----
Hello @channel!
First of all, thank you for this amazing bundle. It was great to find a tool to accomplish exactly what I was already working on. Much appreciated.
I got a question though. Is there a way to configure the Guzzle Logger Middleware to log into a different Monolog channel?
Usually I like to organize my application logs into different channels sometimes specific to some services just so I can tail logs for that service alone without doing any grep, etc.
Also, for some reason it looks like the formatter override is not working for me. Maybe I'm doing something wrong?
output:
It seems that is appending instead of replacing.
Oh I see, it looks like you only allow to override the message itself, not the whole line.
renatogcarvalho [9:49 AM]
Ok, regarding the issue related with the Monolog channel I figured out how to configure it to log into a different file. Just for future reference for anybody that might be interested in accomplish this as well.
Created monolog.yml under /config (SF 4.1):
You guys might be interested in documenting this. Have a good one everybody.
The text was updated successfully, but these errors were encountered: