Skip to content

Commit 744e0f2

Browse files
prateekatknoldusanalytically
authored andcommitted
Added support for AnyLogging
1 parent a42ddcb commit 744e0f2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main/scala/com/typesafe/scalalogging/Logging.scala

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,12 @@ trait StrictLogging {
2222
protected val logger: Logger =
2323
Logger(LoggerFactory.getLogger(getClass.getName))
2424
}
25+
26+
/**
27+
* Defines an abstract `logger` that will be useful while writing some trait which needs access
28+
* to any logger without deciding on an specific implementation.
29+
*/
30+
trait AnyLogging {
31+
32+
protected val logger: Logger
33+
}

0 commit comments

Comments
 (0)