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
Currently, I am using the LoggerTakingImplicit[A] and CanLog[A] in which A will be a context object used to append custom properties on logs but currently scala-logging doesn't let me use context A outside CanLog[A]. Use case is I need to add an appender and I need to get properties on my context A.
I imagine like this
val a = Logger.takingImplicit[ContextA](logger)
val context = a.canLogEv.getA()
or you can just make LoggerTakingImplicitMacro to public and remove the final modifier on LoggerTakingImplicit so we can do it custom. Thanks!
The text was updated successfully, but these errors were encountered:
cheatmenot
changed the title
LoggerTakingImplicits, access A on CanLog[A]
LoggerTakingImplicits, extract A on implicits
Jan 30, 2020
Currently, I am using the
LoggerTakingImplicit[A]
andCanLog[A]
in whichA
will be a context object used to append custom properties on logs but currently scala-logging doesn't let me use contextA
outsideCanLog[A]
. Use case is I need to add an appender and I need to get properties on my contextA
.I imagine like this
or you can just make LoggerTakingImplicitMacro to public and remove the final modifier on LoggerTakingImplicit so we can do it custom. Thanks!
The text was updated successfully, but these errors were encountered: