ConsoleAppender

Companion
class
class Object
trait Matchable
class Any

Value members

Concrete methods

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.

def apply(out: PrintStream): Appender

A new ConsoleAppender that appends log message to out.

A new ConsoleAppender that appends log message to out.

Value Params
out

Where to write messages.

Returns

A new ConsoleAppender.

def apply(out: PrintWriter): Appender

A new ConsoleAppender that appends log messages to out.

A new ConsoleAppender that appends log messages to out.

Value Params
out

Where to write messages.

Returns

A new ConsoleAppender.

A new ConsoleAppender that writes to out.

A new ConsoleAppender that writes to out.

Value Params
out

Where to write messages.

Returns

A new ConsoleAppender that writes toout`.

def apply(name: String): Appender

A new ConsoleAppender identified by name, and that writes to standard output.

A new ConsoleAppender identified by name, and that writes to standard output.

Value Params
name

An identifier for the ConsoleAppender.

Returns

A new ConsoleAppender that writes to standard output.

def apply(name: String, out: ConsoleOut): Appender

A new ConsoleAppender identified by name, and that writes to out.

A new ConsoleAppender identified by name, and that writes to out.

Value Params
name

An identifier for the ConsoleAppender.

out

Where to write messages.

Returns

A new ConsoleAppender that writes to out.

def apply(name: String, out: ConsoleOut, suppressedMessage: SuppressedTraceContext => Option[String]): Appender

A new ConsoleAppender identified by name, and that writes to out.

A new ConsoleAppender identified by name, and that writes to out.

Value Params
name

An identifier for the ConsoleAppender.

out

Where to write messages.

suppressedMessage

How to handle stack traces.

Returns

A new ConsoleAppender that writes to out.

def apply(name: String, out: ConsoleOut, useFormat: Boolean): Appender

A new ConsoleAppender identified by name, and that writes to out.

A new ConsoleAppender identified by name, and that writes to out.

Value Params
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 to out.

def apply(name: String, terminal: Terminal): Appender

A new ConsoleAppender identified by name, and that writes to out.

A new ConsoleAppender identified by name, and that writes to out.

Value Params
name

An identifier for the ConsoleAppender.

terminal

The terminal to which this appender corresponds

Returns

A new ConsoleAppender that writes to out.

def apply(name: String, terminal: Terminal, suppressedMessage: SuppressedTraceContext => Option[String]): Appender

A new ConsoleAppender identified by name, and that writes to out.

A new ConsoleAppender identified by name, and that writes to out.

Value Params
name

An identifier for the ConsoleAppender.

suppressedMessage

How to handle stack traces.

terminal

The terminal to which this appender corresponds

Returns

A new ConsoleAppender that writes to out.

def apply(name: String, out: ConsoleOut, ansiCodesSupported: Boolean, useFormat: Boolean, suppressedMessage: SuppressedTraceContext => Option[String]): Appender

A new ConsoleAppender identified by name, and that writes to out.

A new ConsoleAppender identified by name, and that writes to out.

Value Params
ansiCodesSupported

true if the output stream supports ansi codes, false otherwise.

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 to out.

def setShowProgress(b: Boolean): Unit
def showProgress: Boolean
def toLevel(level: Level): Value

Converts the Log4J level to the corresponding sbt level.

Converts the Log4J level to the corresponding sbt level.

Value Params
level

A level, as represented by Log4J.

Returns

The corresponding level in sbt's world.

def toXLevel(level: Value): Level

Converts the sbt level to the corresponding Log4J level.

Converts the sbt level to the corresponding Log4J level.

Value Params
level

A level, as represented by sbt.

Returns

The corresponding level in Log4J's world.

Concrete fields

Hide stack trace altogether.

Hide stack trace altogether.

Deprecated fields

@deprecated("Use Terminal.isAnsiSupported or Terminal.isColorEnabled", "1.4.0")
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
    1. -Dsbt.colour=always/auto/never/true/false 4. -Dsbt.log.format=always/auto/never/true/false
Deprecated