Filling in logging and making cross-compile work.

This commit is contained in:
Mark Harrah 2009-09-05 12:19:34 -04:00
parent 2acaa0ad25
commit 1fedab85be
1 changed files with 7 additions and 4 deletions

View File

@ -1,9 +1,12 @@
package xsbt
import xsbti.TestLogger
class TestIvyLogger extends TestLogger with IvyLogger
class TestIvyLogger extends BufferedLogger(new ConsoleLogger) with IvyLogger { def verbose(msg: => String) = info(msg) }
object TestIvyLogger
{
def apply[T](f: TestIvyLogger => T): T = TestLogger(new TestIvyLogger)(f)
def apply[T](f: IvyLogger => T): T =
{
val log = new TestIvyLogger
log.setLevel(Level.Debug)
log.bufferQuietly(f(log))
}
}