ConsoleAppender

sbt.internal.util.ConsoleAppender
See theConsoleAppender companion class

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(): Appender

A new ConsoleAppender that writes to standard output.

A new ConsoleAppender that writes to standard output.

Attributes

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 parameters

out

Where to write messages.

Attributes

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 parameters

out

Where to write messages.

Attributes

Returns

A new ConsoleAppender.

A new ConsoleAppender that writes to out.

A new ConsoleAppender that writes to out.

Value parameters

out

Where to write messages.

Attributes

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 parameters

name

An identifier for the ConsoleAppender.

Attributes

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 parameters

name

An identifier for the ConsoleAppender.

out

Where to write messages.

Attributes

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 parameters

name

An identifier for the ConsoleAppender.

out

Where to write messages.

suppressedMessage

How to handle stack traces.

Attributes

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 parameters

name

An identifier for the ConsoleAppender.

out

Where to write messages.

useFormat

true to enable format (color, bold, etc.), false to remove formatting.

Attributes

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 parameters

name

An identifier for the ConsoleAppender.

terminal

The terminal to which this appender corresponds

Attributes

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 parameters

name

An identifier for the ConsoleAppender.

suppressedMessage

How to handle stack traces.

terminal

The terminal to which this appender corresponds

Attributes

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 parameters

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.

Attributes

Returns

A new ConsoleAppender that writes to out.

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

A new ConsoleAppender identified by name, and that writes to terminal. Printing to this Appender will not throw if the Terminal has been closed.

A new ConsoleAppender identified by name, and that writes to terminal. Printing to this Appender will not throw if the Terminal has been closed.

Value parameters

name

An identifier for the ConsoleAppender.

terminal

The terminal to which this appender corresponds

Attributes

Returns

A new ConsoleAppender that writes to terminal.

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 parameters

level

A level, as represented by Log4J.

Attributes

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 parameters

level

A level, as represented by sbt.

Attributes

Returns

The corresponding level in Log4J's world.

Concrete fields

Hide stack trace altogether.

Hide stack trace altogether.

Attributes

Deprecated fields

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

Attributes

Deprecated
true