PromptLogger

mill.internal.PromptLogger
See thePromptLogger companion object
class PromptLogger(colored: Boolean, enableTicker: Boolean, infoColor: Attrs, warnColor: Attrs, errorColor: Attrs, systemStreams0: SystemStreams, debugEnabled: Boolean, titleText: String, terminfoPath: Path, currentTimeMillis: () => Long, autoUpdate: Boolean, val chromeProfileLogger: ChromeProfile) extends Logger, AutoCloseable

Gnarly multithreaded stateful code to handle the terminal prompt and log prefixer that Mill shows to tell the user what is running.

Most operations that update mutable state or writes to parent systemStreams0 is synchronized under the PromptLogger object. Notably, child writes to streams are not synchronized, and instead goes into a PipeStreams buffer to be read out and handled asynchronously.

Attributes

Companion
object
Source
PromptLogger.scala
Graph
Supertypes
trait AutoCloseable
trait Logger
trait Actions
class Object
trait Matchable
class Any
Show all

Members list

Type members

Classlikes

object prompt

Attributes

Source
PromptLogger.scala
Supertypes
class Object
trait Matchable
class Any
Self type

Value members

Concrete methods

override def close(): Unit

Attributes

Definition Classes
AutoCloseable
Source
PromptLogger.scala
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
PromptLogger.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
PromptLogger.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
PromptLogger.scala
def isInteractive(): Boolean

Attributes

Source
PromptLogger.scala
def refreshPrompt(ending: Boolean): Unit

Attributes

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

Attributes

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

Deprecated and Inherited methods

def withOutStream(outStream: PrintStream): Logger

Attributes

Deprecated
true
Inherited from:
Logger
Source
Logger.scala

Concrete fields

val promptUpdaterThread: Option[Thread]

Attributes

Source
PromptLogger.scala