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.
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LoggerContext
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- All
Abstract Value Members
- abstract def addAppender(loggerName: String, appender: (Appender, Level.Value)): Unit
- abstract def appenders(loggerName: String): Seq[Appender]
- abstract def clearAppenders(loggerName: String): Unit
-
abstract
def
close(): Unit
- Definition Classes
- AutoCloseable
- Annotations
- @throws( classOf[java.lang.Exception] )
- abstract def logger(name: String, channelName: Option[String], execId: Option[String]): ManagedLogger
- abstract def remove(name: String): Unit