mirror of https://github.com/sbt/sbt.git
honor formatEnabled setting, fixes #48
This commit is contained in:
parent
9cd575e861
commit
208cf12045
|
|
@ -24,7 +24,7 @@ object LogManager
|
||||||
|
|
||||||
def withScreenLogger(mk: => AbstractLogger): LogManager = withLoggers(mk)
|
def withScreenLogger(mk: => AbstractLogger): LogManager = withLoggers(mk)
|
||||||
|
|
||||||
def withLoggers(screen: => AbstractLogger = defaultScreen, backed: PrintWriter => AbstractLogger = defaultBacked(true)): LogManager =
|
def withLoggers(screen: => AbstractLogger = defaultScreen, backed: PrintWriter => AbstractLogger = defaultBacked(ConsoleLogger.formatEnabled)): LogManager =
|
||||||
new LogManager {
|
new LogManager {
|
||||||
def apply(data: Settings[Scope], task: ScopedKey[_], to: PrintWriter): Logger =
|
def apply(data: Settings[Scope], task: ScopedKey[_], to: PrintWriter): Logger =
|
||||||
defaultLogger(data, task, screen, backed(to))
|
defaultLogger(data, task, screen, backed(to))
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ object ConsoleLogger
|
||||||
def apply(): ConsoleLogger = apply(systemOut)
|
def apply(): ConsoleLogger = apply(systemOut)
|
||||||
def apply(out: PrintStream): ConsoleLogger = apply(printStreamOut(out))
|
def apply(out: PrintStream): ConsoleLogger = apply(printStreamOut(out))
|
||||||
def apply(out: PrintWriter): ConsoleLogger = apply(printWriterOut(out))
|
def apply(out: PrintWriter): ConsoleLogger = apply(printWriterOut(out))
|
||||||
def apply(out: ConsoleOut, ansiCodesSupported: Boolean = formatEnabled, useColor: Boolean = true): ConsoleLogger =
|
def apply(out: ConsoleOut, ansiCodesSupported: Boolean = formatEnabled, useColor: Boolean = formatEnabled): ConsoleLogger =
|
||||||
new ConsoleLogger(out, ansiCodesSupported, useColor)
|
new ConsoleLogger(out, ansiCodesSupported, useColor)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue