trait Logging extends AnyRef
A scala-friendly Logging trait which:
- lazily provides a logger named according to the class in which the trait is mixed
- convenience methods to proxy calls to the lazily provided logger. These methods are explicitly call-by-name as they are mainly intended for use from Scala.
class MyClass extends Logging { ... def foo: String = { info("In foo method") "Hello, world!" } }
For more information, see util-slf4j-api/README.md
- Alphabetic
- By Inheritance
- Logging
- 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()
- def debug(marker: Marker, message: => Any, cause: Throwable): Unit
Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.- Attributes
- protected[this]
- def debug(message: => Any, cause: Throwable): Unit
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]
- def debug(marker: Marker, message: => Any): Unit
Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.- Attributes
- protected[this]
- def debug(message: => Any): Unit
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]
- def debugResult[T](message: => String)(fn: => T): T
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
%swhich will be replaced with the result[T] of the given function.Example:
infoResult("The answer is: %s") {"42"}
- Attributes
- protected[this]
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def error(marker: Marker, message: => Any, cause: Throwable): Unit
Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.- Attributes
- protected[this]
- def error(message: => Any, cause: Throwable): Unit
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]
- def error(marker: Marker, message: => Any): Unit
Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.- Attributes
- protected[this]
- def error(message: => Any): Unit
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]
- def errorResult[T](message: => String)(fn: => T): T
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
%swhich will be replaced with the result[T] of the given function.Example:
infoResult("The answer is: %s") {"42"}
- Attributes
- protected[this]
- 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()
- def info(marker: Marker, message: => Any, cause: Throwable): Unit
Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.- Attributes
- protected[this]
- def info(message: => Any, cause: Throwable): Unit
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]
- def info(marker: Marker, message: => Any): Unit
Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.- Attributes
- protected[this]
- def info(message: => Any): Unit
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]
- def infoResult[T](message: => String)(fn: => T): T
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
%swhich will be replaced with the result[T] of the given function.Example:
infoResult("The answer is: %s") {"42"}
- Attributes
- protected[this]
- def isDebugEnabled(marker: Marker): Boolean
Determines if the named log level is enabled on the underlying logger taking into consideration the given
org.slf4j.Markerdata.Determines if the named log level is enabled on the underlying logger taking into consideration the given
org.slf4j.Markerdata. Returnstrueif enabled,falseotherwise.- Attributes
- protected[this]
- def isDebugEnabled: Boolean
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
trueif enabled,falseotherwise.- Attributes
- protected[this]
- def isErrorEnabled(marker: Marker): Boolean
Determines if the named log level is enabled on the underlying logger taking into consideration the given
org.slf4j.Markerdata.Determines if the named log level is enabled on the underlying logger taking into consideration the given
org.slf4j.Markerdata. Returnstrueif enabled,falseotherwise.- Attributes
- protected[this]
- def isErrorEnabled: Boolean
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
trueif enabled,falseotherwise.- Attributes
- protected[this]
- def isInfoEnabled(marker: Marker): Boolean
Determines if the named log level is enabled on the underlying logger taking into consideration the given
org.slf4j.Markerdata.Determines if the named log level is enabled on the underlying logger taking into consideration the given
org.slf4j.Markerdata. Returnstrueif enabled,falseotherwise.- Attributes
- protected[this]
- def isInfoEnabled: Boolean
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
trueif enabled,falseotherwise.- Attributes
- protected[this]
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraceEnabled(marker: Marker): Boolean
Determines if the named log level is enabled on the underlying logger taking into consideration the given
org.slf4j.Markerdata.Determines if the named log level is enabled on the underlying logger taking into consideration the given
org.slf4j.Markerdata. Returnstrueif enabled,falseotherwise.- Attributes
- protected[this]
- def isTraceEnabled: Boolean
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
trueif enabled,falseotherwise.- Attributes
- protected[this]
- def isWarnEnabled(marker: Marker): Boolean
Determines if the named log level is enabled on the underlying logger taking into consideration the given
org.slf4j.Markerdata.Determines if the named log level is enabled on the underlying logger taking into consideration the given
org.slf4j.Markerdata. Returnstrueif enabled,falseotherwise.- Attributes
- protected[this]
- def isWarnEnabled: Boolean
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
trueif enabled,falseotherwise.- Attributes
- protected[this]
- final def logger: Logger
Return the underlying com.twitter.util.logging.Logger
- final def loggerName: String
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]
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def trace(marker: Marker, message: => Any, cause: Throwable): Unit
Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.- Attributes
- protected[this]
- def trace(message: => Any, cause: Throwable): Unit
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]
- def trace(marker: Marker, message: => Any): Unit
Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.- Attributes
- protected[this]
- def trace(message: => Any): Unit
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]
- def traceResult[T](message: => String)(fn: => T): T
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
%swhich will be replaced with the result[T] of the given function.Example:
infoResult("The answer is: %s") {"42"}
- Attributes
- protected[this]
- 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()
- def warn(marker: Marker, message: => Any, cause: Throwable): Unit
Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.- Attributes
- protected[this]
- def warn(message: => Any, cause: Throwable): Unit
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]
- def warn(marker: Marker, message: => Any): Unit
Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.Logs the given message at the named log level with the underlying logger taking into consideration the given
org.slf4j.Markerdata.- Attributes
- protected[this]
- def warn(message: => Any): Unit
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]
- def warnResult[T](message: => String)(fn: => T): T
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
%swhich will be replaced with the result[T] of the given function.Example:
infoResult("The answer is: %s") {"42"}
- Attributes
- protected[this]