object Message
Contains some useful implicit conversions to Message. These are all that make using the timber API bearable. They should be in scope by virtue of being members of the companion object of the target class.
- Alphabetic
- By Inheritance
- Message
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def messageGathererToMessage(fn: (PrintWriter) => Unit): Message
Converts a function that takes a PrintWriter (and returns Unit) into a message containing everything written to the PrintWriter during the function's execution.
Converts a function that takes a PrintWriter (and returns Unit) into a message containing everything written to the PrintWriter during the function's execution. This can be useful when you want to write several lines of text to the log and ensure that they remain together (not broken up by another entry or a file boundary).
So, instead of this:
val lines = Iterable[String] lines.foreach(log.debug)
do this:
val lines = Iterable[String] log.debug { pw:PrintWriter => lines.foreach(pw.println) }
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- implicit def stringAndThrowableToMessage(st: (String, Throwable)): Message
Converts a String and a Throwable to a Message containing first the String and then the stack trace of the Throwable, separated by a new line.
Converts a String and a Throwable to a Message containing first the String and then the stack trace of the Throwable, separated by a new line. This conversion makes any function call that requires a single Message argument to appear to support two arguments.
- implicit def stringFnToMessage(s: => String): Message
Converts a String into a Message containing only the string.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- implicit def throwableToMessage(t: Throwable): Message
Converts a Throwable to a Message containing its stack trace.
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()