mirror of
https://github.com/sbt/sbt.git
synced 2026-08-22 14:17:13 +02:00
TrapExit support for multiple, concurrent managed applications. Fixes #831.
This commit is contained in:
@@ -57,7 +57,11 @@ object Logger
|
||||
|
||||
implicit def absLog2PLog(log: AbstractLogger): ProcessLogger = new BufferedLogger(log) with ProcessLogger
|
||||
implicit def log2PLog(log: Logger): ProcessLogger = absLog2PLog(new FullLogger(log))
|
||||
implicit def xlog2Log(lg: xLogger): Logger = new Logger {
|
||||
implicit def xlog2Log(lg: xLogger): Logger = lg match {
|
||||
case l: Logger => l
|
||||
case _ => wrapXLogger(lg)
|
||||
}
|
||||
private[this] def wrapXLogger(lg: xLogger): Logger = new Logger {
|
||||
override def debug(msg: F0[String]): Unit = lg.debug(msg)
|
||||
override def warn(msg: F0[String]): Unit = lg.warn(msg)
|
||||
override def info(msg: F0[String]): Unit = lg.info(msg)
|
||||
|
||||
Reference in New Issue
Block a user