object ConsoleAppender

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ConsoleAppender
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. 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.

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

  2. 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.

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

  3. 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.

    name

    An identifier for the ConsoleAppender.

    terminal

    The terminal to which this appender corresponds

    returns

    A new ConsoleAppender that writes to out.

  4. 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.

    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.

  5. 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.

    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.

  6. 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.

    name

    An identifier for the ConsoleAppender.

    out

    Where to write messages.

    returns

    A new ConsoleAppender that writes to out.

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

    name

    An identifier for the ConsoleAppender.

    returns

    A new ConsoleAppender that writes to standard output.

  8. def apply(out: ConsoleOut): Appender

    A new ConsoleAppender that writes to out.

    A new ConsoleAppender that writes to out.

    out

    Where to write messages.

    returns

    A new ConsoleAppender that writes to out.

  9. def apply(out: PrintWriter): Appender

    A new ConsoleAppender that appends log messages to out.

    A new ConsoleAppender that appends log messages to out.

    out

    Where to write messages.

    returns

    A new ConsoleAppender.

  10. def apply(out: PrintStream): Appender

    A new ConsoleAppender that appends log message to out.

    A new ConsoleAppender that appends log message to out.

    out

    Where to write messages.

    returns

    A new ConsoleAppender.

  11. 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.

  12. val noSuppressedMessage: (SuppressedTraceContext) ⇒ None.type

    Hide stack trace altogether.

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

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

    A new ConsoleAppender identified by name, and that writes to terminal. 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 to terminal.

  14. def setShowProgress(b: Boolean): Unit
  15. def showProgress: Boolean
  16. 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.

  17. 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

  1. 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