Logger

mill.api.Logger
@Scaladoc(value = "/**\n * The standard logging interface of the Mill build tool.\n * Also contains the two forwarded stdout and stderr streams, for code executed\n * by Mill to use directly. Typically, these correspond to the stdout and stderr,\n * but when `show` is used both are forwarded to stderr and stdout is only\n * used to display the final `show` output for easy piping.\n */")
trait Logger

The standard logging interface of the Mill build tool. Also contains the two forwarded stdout and stderr streams, for code executed by Mill to use directly. Typically, these correspond to the stdout and stderr, but when show is used both are forwarded to stderr and stdout is only used to display the final show output for easy piping.

Attributes

Source
Logger.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

@Scaladoc(value = "/**\n * Prints internal debug messages normally not shown to the user;\n * mostly useful when debugging issues\n */")
def debug(s: String): Unit

Prints internal debug messages normally not shown to the user; mostly useful when debugging issues

Prints internal debug messages normally not shown to the user; mostly useful when debugging issues

Attributes

Source
Logger.scala
@Scaladoc(value = "/**\n * Prints logging output which represents problems the user should care\n * about\n */")
def error(s: String): Unit

Prints logging output which represents problems the user should care about

Prints logging output which represents problems the user should care about

Attributes

Source
Logger.scala
@Scaladoc(value = "/**\n * Prints miscellaneous logging output which isn\'t part of the main output\n * a user is looking for, but useful to provide context on what Mill is doing\n */")
def info(s: String): Unit

Prints miscellaneous logging output which isn't part of the main output a user is looking for, but useful to provide context on what Mill is doing

Prints miscellaneous logging output which isn't part of the main output a user is looking for, but useful to provide context on what Mill is doing

Attributes

Source
Logger.scala
@Scaladoc(value = "/**\n * This Logger\'s versions of stdin, stdout, and stderr. Typically enabled\n * thread-locally while the logger is being used via `SystemStreams.withStreams`,\n * such that every `println` or `System.err.println` goes through the logger\n */")

This Logger's versions of stdin, stdout, and stderr. Typically enabled thread-locally while the logger is being used via SystemStreams.withStreams, such that every println or System.err.println goes through the logger

This Logger's versions of stdin, stdout, and stderr. Typically enabled thread-locally while the logger is being used via SystemStreams.withStreams, such that every println or System.err.println goes through the logger

Attributes

Source
Logger.scala
@Scaladoc(value = "/**\n * Prints short-lived logging output where consecutive lines over-write\n * each other; this shows up in the logger\'s prompt line in the multi-line\n * prompt when [[withPromptLine]] is running.\n *\n * Useful for information which is transient and disposable, e.g. progress\n * indicators.\n */")
def ticker(s: String): Unit

Prints short-lived logging output where consecutive lines over-write each other; this shows up in the logger's prompt line in the multi-line prompt when withPromptLine is running.

Prints short-lived logging output where consecutive lines over-write each other; this shows up in the logger's prompt line in the multi-line prompt when withPromptLine is running.

Useful for information which is transient and disposable, e.g. progress indicators.

Attributes

Source
Logger.scala
@Scaladoc(value = "/**\n * Prints logging output which represents warnings the user should care\n * about\n */")
def warn(s: String): Unit

Prints logging output which represents warnings the user should care about

Prints logging output which represents warnings the user should care about

Attributes

Source
Logger.scala

Concrete methods

@Scaladoc(value = "/**\n * Whether the `--debug` flag was passed to Mill. Used to turn on additional\n * logging to console and files on disk that you may not want to turn on by\n * default due to verbosity or performance cost.\n */")
final def debugEnabled: Boolean

Whether the --debug flag was passed to Mill. Used to turn on additional logging to console and files on disk that you may not want to turn on by default due to verbosity or performance cost.

Whether the --debug flag was passed to Mill. Used to turn on additional logging to console and files on disk that you may not want to turn on by default due to verbosity or performance cost.

Attributes

Source
Logger.scala
@Scaladoc(value = "/**\n * Creates a new logger identical to this one but with stdout redirected\n * to the given stream; typically used to redirect out to err in `mill show`\n */")
def withOutStream(outStream: PrintStream): Logger

Creates a new logger identical to this one but with stdout redirected to the given stream; typically used to redirect out to err in mill show

Creates a new logger identical to this one but with stdout redirected to the given stream; typically used to redirect out to err in mill show

Attributes

Source
Logger.scala