Merge pull request #2932 from eed3si9n/wip/async

Enable async logging, and start RelayAppender
This commit is contained in:
eugene yokota 2017-01-18 09:24:59 -05:00 committed by GitHub
commit a65576e559
2 changed files with 6 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)

View File

@ -0,0 +1 @@
Log4jContextSelector=org.apache.logging.log4j.core.async.AsyncLoggerContextSelector