object ConsoleAppender
- Alphabetic
- By Inheritance
- ConsoleAppender
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
def
apply(name: String, out: ConsoleOut, ansiCodesSupported: Boolean, useFormat: Boolean, suppressedMessage: (SuppressedTraceContext) ⇒ Option[String]): Appender
A new
ConsoleAppender
identified byname
, and that writes toout
.A new
ConsoleAppender
identified byname
, and that writes toout
.- name
An identifier for the
ConsoleAppender
.- out
Where to write messages.
- ansiCodesSupported
true
if the output stream supports ansi codes,false
otherwise.- useFormat
true
to enable format (color, bold, etc.),false
to remove formatting.- returns
A new
ConsoleAppender
that writes toout
.
-
def
apply(name: String, terminal: Terminal, suppressedMessage: (SuppressedTraceContext) ⇒ Option[String]): Appender
A new
ConsoleAppender
identified byname
, and that writes toout
.A new
ConsoleAppender
identified byname
, and that writes toout
.- name
An identifier for the
ConsoleAppender
.- terminal
The terminal to which this appender corresponds
- suppressedMessage
How to handle stack traces.
- returns
A new
ConsoleAppender
that writes toout
.
-
def
apply(name: String, terminal: Terminal): Appender
A new
ConsoleAppender
identified byname
, and that writes toout
.A new
ConsoleAppender
identified byname
, and that writes toout
.- name
An identifier for the
ConsoleAppender
.- terminal
The terminal to which this appender corresponds
- returns
A new
ConsoleAppender
that writes toout
.
-
def
apply(name: String, out: ConsoleOut, useFormat: Boolean): Appender
A new
ConsoleAppender
identified byname
, and that writes toout
.A new
ConsoleAppender
identified byname
, and that writes toout
.- name
An identifier for the
ConsoleAppender
.- out
Where to write messages.
- useFormat
true
to enable format (color, bold, etc.),false
to remove formatting.- returns
A new
ConsoleAppender
that writes toout
.
-
def
apply(name: String, out: ConsoleOut, suppressedMessage: (SuppressedTraceContext) ⇒ Option[String]): Appender
A new
ConsoleAppender
identified byname
, and that writes toout
.A new
ConsoleAppender
identified byname
, and that writes toout
.- name
An identifier for the
ConsoleAppender
.- out
Where to write messages.
- suppressedMessage
How to handle stack traces.
- returns
A new
ConsoleAppender
that writes toout
.
-
def
apply(name: String, out: ConsoleOut): Appender
A new
ConsoleAppender
identified byname
, and that writes toout
.A new
ConsoleAppender
identified byname
, and that writes toout
.- name
An identifier for the
ConsoleAppender
.- out
Where to write messages.
- returns
A new
ConsoleAppender
that writes toout
.
-
def
apply(name: String): Appender
A new
ConsoleAppender
identified byname
, and that writes to standard output.A new
ConsoleAppender
identified byname
, and that writes to standard output.- name
An identifier for the
ConsoleAppender
.- returns
A new
ConsoleAppender
that writes to standard output.
-
def
apply(out: ConsoleOut): Appender
A new
ConsoleAppender
that writes toout
.A new
ConsoleAppender
that writes toout
.- out
Where to write messages.
- returns
A new
ConsoleAppender that writes to
out.
-
def
apply(out: PrintWriter): Appender
A new
ConsoleAppender
that appends log messages toout
.A new
ConsoleAppender
that appends log messages toout
.- out
Where to write messages.
- returns
A new
ConsoleAppender
.
-
def
apply(out: PrintStream): Appender
A new
ConsoleAppender
that appends log message toout
.A new
ConsoleAppender
that appends log message toout
.- out
Where to write messages.
- returns
A new
ConsoleAppender
.
-
def
apply(): Appender
A new
ConsoleAppender
that writes to standard output.A new
ConsoleAppender
that writes to standard output.- returns
A new
ConsoleAppender
that writes to standard output.
-
val
noSuppressedMessage: (SuppressedTraceContext) ⇒ None.type
Hide stack trace altogether.
-
def
safe(name: String, terminal: Terminal): Appender
A new
ConsoleAppender
identified byname
, and that writes toterminal
.A new
ConsoleAppender
identified byname
, and that writes toterminal
. Printing to this Appender will not throw if the Terminal has been closed.- name
An identifier for the
ConsoleAppender
.- terminal
The terminal to which this appender corresponds
- returns
A new
ConsoleAppender
that writes toterminal
.
- def setShowProgress(b: Boolean): Unit
- def showProgress: Boolean
-
def
toLevel(level: Level): util.Level.Value
Converts the Log4J
level
to the corresponding sbt level.Converts the Log4J
level
to the corresponding sbt level.- level
A level, as represented by Log4J.
- returns
The corresponding level in sbt's world.
-
def
toXLevel(level: util.Level.Value): Level
Converts the sbt
level
to the corresponding Log4J level.Converts the sbt
level
to the corresponding Log4J level.- level
A level, as represented by sbt.
- returns
The corresponding level in Log4J's world.
Deprecated Value Members
-
lazy val
formatEnabledInEnv: Boolean
Indicates whether formatting has been disabled in environment variables.
Indicates whether formatting has been disabled in environment variables. 1. -Dsbt.log.noformat=true means no formatting. 2. -Dsbt.color=always/auto/never/true/false 3. -Dsbt.colour=always/auto/never/true/false 4. -Dsbt.log.format=always/auto/never/true/false
- Annotations
- @deprecated
- Deprecated
(Since version 1.4.0) Use Terminal.isAnsiSupported or Terminal.isColorEnabled