Class/Object

org.scalawag.timber.api

Level

Related Docs: object Level | package api

Permalink

case class Level(intValue: Int, name: Option[String] = None) extends Ordered[Level] with Product with Serializable

Represents a log level of an Entry (sometimes known in other systems as "severity"). Levels are always treated as their integer values internally. The only components that care about the names are the eventual entry destinations, which could be log files or sockets, etc.

The names provided by the API are simply hints which the destination may choose use to format the entry. The destinations may also choose to ignore the names and only use the numeric value or even translate the integers to its own labels.

intValue

the numeric value of the level, used for comparison with other levels internally

name

a suggested name to use when ultimately writing entries logged at this level

Linear Supertypes
Serializable, Serializable, Product, Equals, Ordered[Level], Comparable[Level], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Level
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Ordered
  7. Comparable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Level(intValue: Int, name: Option[String] = None)

    Permalink

    intValue

    the numeric value of the level, used for comparison with other levels internally

    name

    a suggested name to use when ultimately writing entries logged at this level

Value Members

  1. final def !=(arg0: Any): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def <(that: Level): Boolean

    Permalink
    Definition Classes
    Ordered
  4. def <=(that: Level): Boolean

    Permalink
    Definition Classes
    Ordered
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def >(that: Level): Boolean

    Permalink
    Definition Classes
    Ordered
  7. def >=(that: Level): Boolean

    Permalink
    Definition Classes
    Ordered
  8. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  10. def compare(that: Level): Int

    Permalink
    Definition Classes
    Level → Ordered
  11. def compareTo(that: Level): Int

    Permalink
    Definition Classes
    Ordered → Comparable
  12. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. val intValue: Int

    Permalink

    the numeric value of the level, used for comparison with other levels internally

  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val name: Option[String]

    Permalink

    a suggested name to use when ultimately writing entries logged at this level

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

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

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

    Permalink
    Definition Classes
    AnyRef
  21. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  22. lazy val toString: String

    Permalink
    Definition Classes
    Level → AnyRef → Any
  23. final def wait(): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. 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 Ordered[Level]

Inherited from Comparable[Level]

Inherited from AnyRef

Inherited from Any

Ungrouped