We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d149841 commit ee49fc8Copy full SHA for ee49fc8
src/main/scala/com/typesafe/scalalogging/LoggerTakingImplicit.scala
@@ -3,10 +3,11 @@ package com.typesafe.scalalogging
3
import org.slf4j.{ Logger => Underlying }
4
5
trait CanLog[A] {
6
- def logMessage(originalMsg: String, a: A): String
7
- def afterLog(a: A): Unit = {
8
- val _ = a
+ def logMessage(originalMsg: String, context: A): String
+ def afterLog(context: A): Unit = {
+ val _ = context
9
}
10
+ def getContext()(implicit context: A): A = context
11
12
13
@SerialVersionUID(957385465L)
0 commit comments