LoggerContext

sbt.util.LoggerContext
See theLoggerContext companion object
sealed trait LoggerContext extends AutoCloseable

Provides a context for generating loggers during task evaluation. The logger context can be initialized for a single command evaluation run and all of the resources created (such as cached logger appenders) can be cleaned up after task evaluation. This trait evolved out of LogExchange when it became clear that it was very difficult to manage the loggers and appenders without introducing memory leaks.

Attributes

Companion:
object
Graph
Supertypes
trait AutoCloseable
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def addAppender(loggerName: String, appender: (Appender, Value)): Unit
def appenders(loggerName: String): Seq[Appender]
def clearAppenders(loggerName: String): Unit
def logger(name: String, channelName: Option[String], execId: Option[String]): ManagedLogger
def remove(name: String): Unit

Inherited methods

def close(): Unit

Attributes

Inherited from:
AutoCloseable