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
I was playing with #[WithMonologChannel] attribute. Without reading the doc, I put it on the constructor parameter, because I thought it would work like #[Target], #[Autowire], ... attributes
Hello,
I was playing with
#[WithMonologChannel]
attribute. Without reading the doc, I put it on the constructor parameter, because I thought it would work like#[Target]
,#[Autowire]
, ... attributesBut, what a surprise, it didn't work.
Instead it must be set on the class
What about allowing it on the parameter instead ? It feels more natural. And it allows having N different logger
WDYT ?
The text was updated successfully, but these errors were encountered: