org.scalawag.timber.api

Logger

Related Doc: package api

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: 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 buildEntry(level: Level, message: Message, tags: Set[Tag]): Entry

    Attributes
    protected
  6. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

  17. 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

  18. val name: String

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

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

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

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

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

    Definition Classes
    AnyRef
  23. def toString(): String

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped