Class/Object

org.scalawag.timber.api

Entry

Related Docs: object Entry | package api

Permalink

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, Serializable, Product, Equals, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Entry
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

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)

    Permalink

    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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  8. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  9. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  10. val level: Option[Level]

    Permalink

    the optional level at which this entry was logged

  11. val loggerAttributes: Map[String, Any]

    Permalink

    the attributes associated with the logger that created this entry

  12. val loggingClass: Option[String]

    Permalink

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

  13. val loggingMethod: Option[String]

    Permalink

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

  14. val message: Option[Message]

    Permalink

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

  15. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  17. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. val sourceLocation: Option[SourceLocation]

    Permalink

    the optional source code location from which this entry was logged

  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  20. val tags: Set[Tag]

    Permalink

    the set of tags that have been associated with this entry

  21. val threadAttributes: Map[String, List[String]]

    Permalink

    the attributes associated with the thread that created this entry

  22. val threadName: String

    Permalink

    the name of the thread which created this entry

  23. val timestamp: Long

    Permalink

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

  24. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped