Skip to content

Commit d968b88

Browse files
Atryanalytically
authored andcommitted
lazy val logger field should be transient (#114)
1 parent 565ac15 commit d968b88

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import org.slf4j.LoggerFactory
2424
*/
2525
trait LazyLogging {
2626

27+
@transient
2728
protected lazy val logger: Logger =
2829
Logger(LoggerFactory.getLogger(getClass.getName))
2930
}

0 commit comments

Comments
 (0)