Skip to content
This repository has been archived by the owner on Dec 8, 2017. It is now read-only.

Commit

Permalink
Make logger serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
xerial committed Apr 5, 2017
1 parent 1b68127 commit 11e64f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wvlet-log/shared/src/main/scala/wvlet/log/LogSupport.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ trait LocalLogSupport extends LoggingMethods with LocalLogger
* Trait for adding a local logger instance to your class
*/
trait LazyLogger {
protected[this] lazy val logger: Logger = Logger(LogEnv.getLoggerName(this.getClass))
@transient protected[this] lazy val logger: Logger = Logger(LogEnv.getLoggerName(this.getClass))
}

/**
* Trait for adding an initialized logger instance to your class
*/
trait LocalLogger {
protected[this] val logger: Logger = Logger(LogEnv.getLoggerName(this.getClass))
@transient protected[this] val logger: Logger = Logger(LogEnv.getLoggerName(this.getClass))
}


Expand Down

0 comments on commit 11e64f9

Please sign in to comment.