org.scalawag.timber.api

Logger

class Logger extends AnyRef

The main application interface into timber.

Loggers are what applications use to inject @link Entries into the system.

Loggers don't support the isEnabled type methods provided by some other logging systems. That's because the Logger doesn't make any decisions regarding where (or if) the entry it creates is actually written into a log file or processed in any way.

The idea behind timber is that the application thread gets to return to what it's doing as quickly as possible.

Arguably, this is better for the application code because your application code shouldn't be dependent on the logging configuration. You have to try really hard to write code that depends on logging configuration.

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Logger
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Logger(name: String, dispatcher: EntryDispatcher)

    name

    the value that this Logger uses as the "logger" field in the Entries that it generates.

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def buildEntry(level: Level, message: Message, tags: Set[Tag]): Entry

    Attributes
    protected
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. val dispatcher: EntryDispatcher

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

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

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

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

    Definition Classes
    Any
  16. def log(level: Level, tag: Tag*)(message: Message): Unit

  17. def log(level: Level, message: Message, tag: Tag*): Unit

  18. def log(level: Level, message: Message): Unit

  19. def log(level: Level, message: Message, tags: Set[Tag]): Unit

    Submits an entry to the logging system.

    Submits an entry to the logging system.

    level

    the level to use for the entry created

    message

    the message to include with the entry

    tags

    the (optional) set of tags to include with the entry

  20. val name: String

    the value that this Logger uses as the "logger" field in the Entries that it generates.

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

    Definition Classes
    AnyRef
  22. final def notify(): Unit

    Definition Classes
    AnyRef
  23. final def notifyAll(): Unit

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

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    AnyRef → Any
  26. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped