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 Upstream, 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 Upstream
class Object
trait Matchable
class Any

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

Attributes

Source
PromptLogger.scala
def error(s: String): Unit

Attributes

Source
PromptLogger.scala
def info(s: String): Unit

Attributes

Source
PromptLogger.scala
def isInteractive(): Boolean

Attributes

Source
PromptLogger.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
PromptLogger.scala
override def redirectOutToErr: Boolean

Attributes

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

Attributes

Source
PromptLogger.scala

Attributes

Source
PromptLogger.scala

Attributes

Source
PromptLogger.scala
def ticker(s: String): Unit

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

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

Definition Classes
Source
PromptLogger.scala
def warn(s: String): Unit

Attributes

Source
PromptLogger.scala

Concrete fields

val promptUpdaterThread: Option[Thread]

Attributes

Source
PromptLogger.scala