MultiLogger

mill.internal.MultiLogger
class MultiLogger(val logger1: Logger, val logger2: Logger, val inStream0: InputStream) extends Logger

Attributes

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

Members list

Value members

Concrete 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
MultiLogger.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
MultiLogger.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
MultiLogger.scala
override def keySuffix: String

A suffix appended to the logKey when the message is printed. Usually the total task count, so the task ID in logKey can be compared to the total task count to judge how much of the build has been completed

A suffix appended to the logKey when the message is printed. Usually the total task count, so the task ID in logKey can be compared to the total task count to judge how much of the build has been completed

Attributes

Definition Classes
Source
MultiLogger.scala
override def logKey: Seq[String]

A short dash-separated prefix that is printed before every log line. Used to uniquely identify log lines belonging to this logger from log lines belonging to others, which is especially necessary in the presence of concurrency and where logs get interleaved. Typically a single ID number or sequence of numbers.

A short dash-separated prefix that is printed before every log line. Used to uniquely identify log lines belonging to this logger from log lines belonging to others, which is especially necessary in the presence of concurrency and where logs get interleaved. Typically a single ID number or sequence of numbers.

Attributes

Definition Classes
Source
MultiLogger.scala
override def message: String

A longer one-liner message describing this logger that is the first time a log line is generated. Useful for cross-referencing the short logKey with a more meaningful module path and task name.

A longer one-liner message describing this logger that is the first time a log line is generated. Useful for cross-referencing the short logKey with a more meaningful module path and task name.

Attributes

Definition Classes
Source
MultiLogger.scala
def prompt: Prompt

Global APIs that let the logger access the command line configuration and manipulate the global prompt, e.g. enabling or disabling it

Global APIs that let the logger access the command line configuration and manipulate the global prompt, e.g. enabling or disabling it

Attributes

Source
MultiLogger.scala
override def redirectOutToErr: Boolean

Attributes

Definition Classes
Source
MultiLogger.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 Logger.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 Logger.withPromptLine is running.

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

Attributes

Source
MultiLogger.scala
override def toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Any
Source
MultiLogger.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
MultiLogger.scala
override def withOutStream(outStream: PrintStream): Logger

Attributes

Definition Classes
Source
MultiLogger.scala
override def withRedirectOutToErr(): Logger

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

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

Attributes

Definition Classes
Source
MultiLogger.scala

Inherited 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

Inherited from:
Logger
Source
Logger.scala

Concrete fields

val inStream0: InputStream

Attributes

Source
MultiLogger.scala

Attributes

Source
MultiLogger.scala

Attributes

Source
MultiLogger.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
MultiLogger.scala
lazy override val unprefixedStreams: SystemStreams

A version of streams without the logging prefix appended to every line. Used by the logging hierarchy to print things such that the logging prefixes can be more finely customized per logger.

A version of streams without the logging prefix appended to every line. Used by the logging hierarchy to print things such that the logging prefixes can be more finely customized per logger.

Attributes

Source
MultiLogger.scala