Trait

com.twitter.util.logging

Logging

Related Doc: package logging

Permalink

trait Logging extends AnyRef

A scala-friendly Logging trait which:

class MyClass extends Logging {
  ...
  def foo: String = {
    info("In foo method")
    "Hello, world!"
  }
}

For more information, see util-slf4j-api/README.md

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Logging
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def debug(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Attributes
    protected[this]
  7. def debug(message: ⇒ Any, cause: Throwable): Unit

    Permalink

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Attributes
    protected[this]
  8. def debug(marker: Marker, message: ⇒ Any): Unit

    Permalink

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Attributes
    protected[this]
  9. def debug(message: ⇒ Any): Unit

    Permalink

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Attributes
    protected[this]
  10. def debugResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink

    Log the given message at the named log level formatted with the result of the passed in function using the underlying logger.

    Log the given message at the named log level formatted with the result of the passed in function using the underlying logger. The incoming string message should contain a single %s which will be replaced with the result[T] of the given function.

    Example:

    infoResult("The answer is: %s") {"42"}
    Attributes
    protected[this]
  11. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def error(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Attributes
    protected[this]
  14. def error(message: ⇒ Any, cause: Throwable): Unit

    Permalink

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Attributes
    protected[this]
  15. def error(marker: Marker, message: ⇒ Any): Unit

    Permalink

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Attributes
    protected[this]
  16. def error(message: ⇒ Any): Unit

    Permalink

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Attributes
    protected[this]
  17. def errorResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink

    Log the given message at the named log level formatted with the result of the passed in function using the underlying logger.

    Log the given message at the named log level formatted with the result of the passed in function using the underlying logger. The incoming string message should contain a single %s which will be replaced with the result[T] of the given function.

    Example:

    infoResult("The answer is: %s") {"42"}
    Attributes
    protected[this]
  18. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  21. def info(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Attributes
    protected[this]
  22. def info(message: ⇒ Any, cause: Throwable): Unit

    Permalink

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Attributes
    protected[this]
  23. def info(marker: Marker, message: ⇒ Any): Unit

    Permalink

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Attributes
    protected[this]
  24. def info(message: ⇒ Any): Unit

    Permalink

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Attributes
    protected[this]
  25. def infoResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink

    Log the given message at the named log level formatted with the result of the passed in function using the underlying logger.

    Log the given message at the named log level formatted with the result of the passed in function using the underlying logger. The incoming string message should contain a single %s which will be replaced with the result[T] of the given function.

    Example:

    infoResult("The answer is: %s") {"42"}
    Attributes
    protected[this]
  26. def isDebugEnabled(marker: Marker): Boolean

    Permalink

    Determines if the named log level is enabled on the underlying logger taking into consideration the given Marker data.

    Determines if the named log level is enabled on the underlying logger taking into consideration the given Marker data. Returns true if enabled, false otherwise.

    Attributes
    protected[this]
  27. def isDebugEnabled: Boolean

    Permalink

    Determines if the named log level is enabled on the underlying logger.

    Determines if the named log level is enabled on the underlying logger. Returns true if enabled, false otherwise.

    Attributes
    protected[this]
  28. def isErrorEnabled(marker: Marker): Boolean

    Permalink

    Determines if the named log level is enabled on the underlying logger taking into consideration the given Marker data.

    Determines if the named log level is enabled on the underlying logger taking into consideration the given Marker data. Returns true if enabled, false otherwise.

    Attributes
    protected[this]
  29. def isErrorEnabled: Boolean

    Permalink

    Determines if the named log level is enabled on the underlying logger.

    Determines if the named log level is enabled on the underlying logger. Returns true if enabled, false otherwise.

    Attributes
    protected[this]
  30. def isInfoEnabled(marker: Marker): Boolean

    Permalink

    Determines if the named log level is enabled on the underlying logger taking into consideration the given Marker data.

    Determines if the named log level is enabled on the underlying logger taking into consideration the given Marker data. Returns true if enabled, false otherwise.

    Attributes
    protected[this]
  31. def isInfoEnabled: Boolean

    Permalink

    Determines if the named log level is enabled on the underlying logger.

    Determines if the named log level is enabled on the underlying logger. Returns true if enabled, false otherwise.

    Attributes
    protected[this]
  32. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  33. def isTraceEnabled(marker: Marker): Boolean

    Permalink

    Determines if the named log level is enabled on the underlying logger taking into consideration the given Marker data.

    Determines if the named log level is enabled on the underlying logger taking into consideration the given Marker data. Returns true if enabled, false otherwise.

    Attributes
    protected[this]
  34. def isTraceEnabled: Boolean

    Permalink

    Determines if the named log level is enabled on the underlying logger.

    Determines if the named log level is enabled on the underlying logger. Returns true if enabled, false otherwise.

    Attributes
    protected[this]
  35. def isWarnEnabled(marker: Marker): Boolean

    Permalink

    Determines if the named log level is enabled on the underlying logger taking into consideration the given Marker data.

    Determines if the named log level is enabled on the underlying logger taking into consideration the given Marker data. Returns true if enabled, false otherwise.

    Attributes
    protected[this]
  36. def isWarnEnabled: Boolean

    Permalink

    Determines if the named log level is enabled on the underlying logger.

    Determines if the named log level is enabled on the underlying logger. Returns true if enabled, false otherwise.

    Attributes
    protected[this]
  37. final def logger: Logger

    Permalink

    Return the underlying com.twitter.util.logging.Logger

    Return the underlying com.twitter.util.logging.Logger

    returns

    a com.twitter.util.logging.Logger

    Attributes
    protected[this]
  38. final def loggerName: String

    Permalink

    Return the name of the underlying com.twitter.util.logging.Logger

    Return the name of the underlying com.twitter.util.logging.Logger

    returns

    a String name

    Attributes
    protected[this]
  39. final def ne(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  43. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  44. def trace(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Attributes
    protected[this]
  45. def trace(message: ⇒ Any, cause: Throwable): Unit

    Permalink

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Attributes
    protected[this]
  46. def trace(marker: Marker, message: ⇒ Any): Unit

    Permalink

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Attributes
    protected[this]
  47. def trace(message: ⇒ Any): Unit

    Permalink

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Attributes
    protected[this]
  48. def traceResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink

    Log the given message at the named log level formatted with the result of the passed in function using the underlying logger.

    Log the given message at the named log level formatted with the result of the passed in function using the underlying logger. The incoming string message should contain a single %s which will be replaced with the result[T] of the given function.

    Example:

    infoResult("The answer is: %s") {"42"}
    Attributes
    protected[this]
  49. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  52. def warn(marker: Marker, message: ⇒ Any, cause: Throwable): Unit

    Permalink

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Attributes
    protected[this]
  53. def warn(message: ⇒ Any, cause: Throwable): Unit

    Permalink

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Attributes
    protected[this]
  54. def warn(marker: Marker, message: ⇒ Any): Unit

    Permalink

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Logs the given message at the named log level with the underlying logger taking into consideration the given Marker data.

    Attributes
    protected[this]
  55. def warn(message: ⇒ Any): Unit

    Permalink

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Logs the given message at the named log level using call-by-name for the message parameter with the underlying logger.

    Attributes
    protected[this]
  56. def warnResult[T](message: ⇒ String)(fn: ⇒ T): T

    Permalink

    Log the given message at the named log level formatted with the result of the passed in function using the underlying logger.

    Log the given message at the named log level formatted with the result of the passed in function using the underlying logger. The incoming string message should contain a single %s which will be replaced with the result[T] of the given function.

    Example:

    infoResult("The answer is: %s") {"42"}
    Attributes
    protected[this]

Inherited from AnyRef

Inherited from Any

Ungrouped