Logger

mill.api.daemon.Logger
See theLogger companion object
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

Companion
object
Source
Logger.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object DummyLogger

Members list

Value members

Abstract methods

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

This Logger's versions of stdin, stdout, and stderr. Typically enabled thread-locally while the logger is being used via SystemStreamsUtils.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 SystemStreamsUtils.withStreams, such that every println or System.err.println goes through the logger

Attributes

Source
Logger.scala
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
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

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