Start RelayAppender automatically

This commit is contained in:
Eugene Yokota 2017-01-18 07:04:19 -05:00
parent 23a20f41e6
commit 904069700d
1 changed files with 5 additions and 1 deletions

View File

@ -129,7 +129,11 @@ object LogManager {
// This is the default implementation for the relay appender
val defaultRelay: Unit => Appender = _ => defaultRelayImpl
private[this] lazy val defaultRelayImpl: RelayAppender = new RelayAppender("Relay0")
private[this] lazy val defaultRelayImpl: RelayAppender = {
val appender = new RelayAppender("Relay0")
appender.start()
appender
}
private[this] def hasExplicitGlobalLogLevels(s: State): Boolean =
State.getBoolean(s, BasicKeys.explicitGlobalLogLevels, default = false)