Packages

trait Logging extends util.logging.Logging

Mix this trait into a class/object to get helpful logging methods.

Annotations
@deprecated
Deprecated

(Since version 2022-01-27) Use c.t.util.logging.Logging directly

Note

This trait simply adds several methods to the com.twitter.util.logging.Logging trait. The methods below are used as so: Before:

def foo = {
  val result = 4 + 5
  debugFutureResult("Foo returned " + result)
  result
}

After:

def foo = {
  debugFutureResult("Foo returned %s") {
    4 + 5
  }
}
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Logging
  2. Logging
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. def debug(marker: Marker, message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  7. def debug(message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  8. def debug(marker: Marker, message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  9. def debug(message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  10. def debugResult[T](message: => String)(fn: => T): T
    Attributes
    protected[this]
    Definition Classes
    Logging
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. def error(marker: Marker, message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  14. def error(message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  15. def error(marker: Marker, message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  16. def error(message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  17. def errorResult[T](message: => String)(fn: => T): T
    Attributes
    protected[this]
    Definition Classes
    Logging
  18. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  21. def info(marker: Marker, message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  22. def info(message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  23. def info(marker: Marker, message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  24. def info(message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  25. def infoResult[T](message: => String)(fn: => T): T
    Attributes
    protected[this]
    Definition Classes
    Logging
  26. def isDebugEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  27. def isDebugEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  28. def isErrorEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  29. def isErrorEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  30. def isInfoEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  31. def isInfoEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  32. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  33. def isTraceEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  34. def isTraceEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  35. def isWarnEnabled(marker: Marker): Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  36. def isWarnEnabled: Boolean
    Attributes
    protected[this]
    Definition Classes
    Logging
  37. final def logger: Logger
    Attributes
    protected[this]
    Definition Classes
    Logging
  38. final def loggerName: String
    Attributes
    protected[this]
    Definition Classes
    Logging
  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  42. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  43. def toString(): String
    Definition Classes
    AnyRef → Any
  44. def trace(marker: Marker, message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  45. def trace(message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  46. def trace(marker: Marker, message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  47. def trace(message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  48. def traceResult[T](message: => String)(fn: => T): T
    Attributes
    protected[this]
    Definition Classes
    Logging
  49. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  52. def warn(marker: Marker, message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  53. def warn(message: => Any, cause: Throwable): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  54. def warn(marker: Marker, message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  55. def warn(message: => Any): Unit
    Attributes
    protected[this]
    Definition Classes
    Logging
  56. def warnResult[T](message: => String)(fn: => T): T
    Attributes
    protected[this]
    Definition Classes
    Logging

Deprecated Value Members

  1. def debugFutureResult[T](msg: String)(func: => Future[T]): Future[T]

    Log an debug msg that contains the result of the passed in func.

    Log an debug msg that contains the result of the passed in func.

    msg

    A string containing a single %s which will be replaced with the result of func.

    func

    The function returning a future whose result will be placed in msg.

    returns

    Result of func

    Attributes
    protected
    Annotations
    @deprecated
    Deprecated

    (Since version 2022-01-27) No replacement

  2. def time[T](formatStr: String)(func: => T): T
    Attributes
    protected
    Annotations
    @deprecated
    Deprecated

    (Since version 2022-01-27) No replacement

Inherited from util.logging.Logging

Inherited from AnyRef

Inherited from Any

Ungrouped