Packages

  • package root
    Definition Classes
    root
  • package org
    Definition Classes
    root
  • package scalawag
    Definition Classes
    org
  • package timber
    Definition Classes
    scalawag
  • package api
    Definition Classes
    timber
  • package impl
    Definition Classes
    api
  • package level

    Contains composable traits that can be used to add many common level-specific log methods to your custom loggers.

    Contains composable traits that can be used to add many common level-specific log methods to your custom loggers. They are inspired by various legacy logging technologies.

    Each trait defines several methods for logging and level val that can be overridden to control the level at which those methods log entries. See Logger for an example.

    Another example that mixes in a ridiculous set of level methods:

    import org.scalawag.timber.api
    import org.scalawag.timber.api.Dispatcher
    import org.scalawag.timber.api.level._
    
    class Logger(override val attributes:Map[String,Any] = Map.empty, override val tags:Set[Tag] = Set.empty)(implicit dispatcher: Dispatcher)
      extends BaseLogger(attributes, tags)(dispatcher) with Emergency with Finest with Warning with Warn
    Definition Classes
    api
  • package style
    Definition Classes
    api
  • BaseLogger
  • Dispatcher
  • Entry
  • ImmediateMessage
  • Level
  • Logger
  • Message
  • Tag
  • ThreadAttributes

case class Entry(level: Option[Level] = None, message: Option[Message] = None, sourceLocation: Option[SourceLocation] = None, loggingClass: Option[String] = None, loggingMethod: Option[String] = None, tags: Set[Tag] = Set.empty, timestamp: Long = System.currentTimeMillis, threadName: String = Thread.currentThread.getName, loggerAttributes: Map[String, Any] = Map.empty, threadAttributes: Map[String, List[String]] = Map.empty) extends Product with Serializable

Represents a log-worthy event in the timber logging system.

Depending on the origin of the entry, different fields may be present or absent. For example, information about the entry's origin (sourceLocation, loggingClass, loggingMethod) will normally be present when the entry is created using the timber API but may be absent for entries bridged from other logging systems' APIs.

level

the optional level at which this entry was logged

message

the optional text content of this entry, which may contain multiple lines

sourceLocation

the optional source code location from which this entry was logged

loggingClass

the optional name of the class from which this entry was logged

loggingMethod

the optional name of the method from which this entry was logged

tags

the set of tags that have been associated with this entry

timestamp

the timestamp at which this entry was created, milliseconds since Java epoch UTC

threadName

the name of the thread which created this entry

loggerAttributes

the attributes associated with the logger that created this entry

threadAttributes

the attributes associated with the thread that created this entry

Linear Supertypes
Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Entry
  2. Serializable
  3. Product
  4. Equals
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Entry(level: Option[Level] = None, message: Option[Message] = None, sourceLocation: Option[SourceLocation] = None, loggingClass: Option[String] = None, loggingMethod: Option[String] = None, tags: Set[Tag] = Set.empty, timestamp: Long = System.currentTimeMillis, threadName: String = Thread.currentThread.getName, loggerAttributes: Map[String, Any] = Map.empty, threadAttributes: Map[String, List[String]] = Map.empty)

    level

    the optional level at which this entry was logged

    message

    the optional text content of this entry, which may contain multiple lines

    sourceLocation

    the optional source code location from which this entry was logged

    loggingClass

    the optional name of the class from which this entry was logged

    loggingMethod

    the optional name of the method from which this entry was logged

    tags

    the set of tags that have been associated with this entry

    timestamp

    the timestamp at which this entry was created, milliseconds since Java epoch UTC

    threadName

    the name of the thread which created this entry

    loggerAttributes

    the attributes associated with the logger that created this entry

    threadAttributes

    the attributes associated with the thread that created this entry

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  8. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  9. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  10. val level: Option[Level]
  11. val loggerAttributes: Map[String, Any]
  12. val loggingClass: Option[String]
  13. val loggingMethod: Option[String]
  14. val message: Option[Message]
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def productElementNames: Iterator[String]
    Definition Classes
    Product
  19. val sourceLocation: Option[SourceLocation]
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. val tags: Set[Tag]
  22. val threadAttributes: Map[String, List[String]]
  23. val threadName: String
  24. val timestamp: Long
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped