package dispatcher
- Alphabetic
- Public
- Protected
Package Members
- package configuration
Type Members
- class Dispatcher extends api.Dispatcher
The only Dispatcher provided by the timber backend.
The only Dispatcher provided by the timber backend. It should handle most of your dispatching needs. Instances of this class are thread-safe. You can change the configuration at any time.
Until the first setConfiguration() call, dispatching is done using the initial configuration specified in the constructor. If you don't specify a configuration, the DefaultConfiguration is used.
If you are concerned about the performance of your dispatcher, you should look into specifying a cacheKeyExtractor to the constructor. If you're not concerned about performance, you can safely ignore it.
- case class EntryFacets(level: Option[Option[Level]] = None, message: Option[Option[Message]] = None, sourceFile: Option[Option[String]] = None, sourceLineNumber: Option[Option[Int]] = None, loggingClass: Option[Option[String]] = None, loggingMethod: Option[Option[String]] = None, tags: Option[Set[Tag]] = None, timestamp: Option[Long] = None, threadName: Option[String] = None, loggerAttributes: Option[Map[String, Any]] = None, threadAttributes: Option[Map[String, List[String]]] = None) extends Product with Serializable
Represents an incomplete view of an Entry.
Represents an incomplete view of an Entry. The entry may be real or hypothetical. Real entries are sometimes used to generate views of themselves to focus only on the relevant aspects of the entry (e.g., see CacheKeyExtractor). EntryFacets representing hypothetical entries are used to query Conditions to find out whether they would accept an entry based only on knowledge the fields present.
For each field of the Entry class, this class contains a corresponding field that is optional. The absence of the field from an EntryFacets instance implies nothing. The value of the field in the corresponding entry is completely unknown and can't be reasoned about. The presence of the field in the EntryFacets implies that the value of the field in the Entry is known. Note that due to the nesting of the Options, it is possible that it is known that the value is absent in the Entry. This is represented by
Some(None).- level
optional view of the level field in an Entry instance
- message
optional view of the message field in an Entry instance
- sourceFile
optional view of the sourceFile field in an Entry instance
- sourceLineNumber
optional view of the sourceLineNumber field in an Entry instance
- loggingClass
optional view of the loggingClass field in an Entry instance
- loggingMethod
optional view of the loggingMethod field in an Entry instance
- tags
optional view of the tags field in an Entry instance
- timestamp
optional view of the timestamp field in an Entry instance
- threadName
optional view of the threadName field in an Entry instance
- loggerAttributes
optional view of the loggerAttributes field in an Entry instance
- threadAttributes
optional view of the threadAttributes field in an Entry instance
Value Members
- object Dispatcher
- object EntryFacets extends Serializable