final class Logger extends Serializable
A scala wrapper over a org.slf4j.Logger
.
The Logger extends java.io.Serializable to support it's usage through the com.twitter.util.logging.Logging trait when the trait is mixed into a java.io.Serializable class.
Note, logging methods have a call-by-name variation which are intended for use from Scala.
- Annotations
- @SerialVersionUID()
- Alphabetic
- By Inheritance
- Logger
- Serializable
- 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 taking into consideration the given
org.slf4j.Marker
data. - def debug(marker: Marker, message: String, cause: Throwable): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def debug(marker: Marker, message: => Any): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def debug(marker: Marker, message: String): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def debug(message: => Any, cause: Throwable): Unit
Logs the given message at the named log level.
- def debug(message: String, cause: Throwable): Unit
Logs the given message at the named log level.
- def debug(message: => Any): Unit
Logs the given message at the named log level.
- def debug(message: String): Unit
Logs the given message at the named log level.
- 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
%s
which will be replaced with the result[T] of the given function.Example:
infoResult("The answer is: %s") {"42"}
- def debugWith(marker: Marker, message: => Any, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data.Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data. See Parameterized Message Logging - def debugWith(marker: Marker, message: String, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data.Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data. See Parameterized Message Logging - def debugWith(message: => Any, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args.
Log the given parameterized message at the named log level using the given args. See Parameterized Message Logging
- def debugWith(message: String, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args.
Log the given parameterized message at the named log level using the given args. See Parameterized Message Logging
- 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 taking into consideration the given
org.slf4j.Marker
data. - def error(marker: Marker, message: String, cause: Throwable): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def error(marker: Marker, message: => Any): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def error(marker: Marker, message: String): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def error(message: => Any, cause: Throwable): Unit
Logs the given message at the named log level.
- def error(message: String, cause: Throwable): Unit
Logs the given message at the named log level.
- def error(message: => Any): Unit
Logs the given message at the named log level.
- def error(message: String): Unit
Logs the given message at the named log level.
- 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
%s
which will be replaced with the result[T] of the given function.Example:
infoResult("The answer is: %s") {"42"}
- def errorWith(marker: Marker, message: => Any, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data.Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data. See Parameterized Message Logging - def errorWith(marker: Marker, message: String, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data.Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data. See Parameterized Message Logging - def errorWith(message: => Any, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args.
Log the given parameterized message at the named log level using the given args. See Parameterized Message Logging
- def errorWith(message: String, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args.
Log the given parameterized message at the named log level using the given args. See Parameterized Message Logging
- 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 taking into consideration the given
org.slf4j.Marker
data. - def info(marker: Marker, message: String, cause: Throwable): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def info(marker: Marker, message: => Any): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def info(marker: Marker, message: String): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def info(message: => Any, cause: Throwable): Unit
Logs the given message at the named log level.
- def info(message: String, cause: Throwable): Unit
Logs the given message at the named log level.
- def info(message: => Any): Unit
Logs the given message at the named log level.
- def info(message: String): Unit
Logs the given message at the named log level.
- 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
%s
which will be replaced with the result[T] of the given function.Example:
infoResult("The answer is: %s") {"42"}
- def infoWith(marker: Marker, message: => Any, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data.Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data. See Parameterized Message Logging - def infoWith(marker: Marker, message: String, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data.Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data. See Parameterized Message Logging - def infoWith(message: => Any, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args.
Log the given parameterized message at the named log level using the given args. See Parameterized Message Logging
- def infoWith(message: String, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args.
Log the given parameterized message at the named log level using the given args. See Parameterized Message Logging
- def isDebugEnabled(marker: Marker): Boolean
Determines if the named log level is enabled taking into consideration the given
org.slf4j.Marker
data.Determines if the named log level is enabled taking into consideration the given
org.slf4j.Marker
data. Returnstrue
if enabled,false
otherwise. - def isDebugEnabled: Boolean
Determines if the named log level is enabled.
Determines if the named log level is enabled. Returns
true
if enabled,false
otherwise. - def isErrorEnabled(marker: Marker): Boolean
Determines if the named log level is enabled taking into consideration the given
org.slf4j.Marker
data.Determines if the named log level is enabled taking into consideration the given
org.slf4j.Marker
data. Returnstrue
if enabled,false
otherwise. - def isErrorEnabled: Boolean
Determines if the named log level is enabled.
Determines if the named log level is enabled. Returns
true
if enabled,false
otherwise. - def isInfoEnabled(marker: Marker): Boolean
Determines if the named log level is enabled taking into consideration the given
org.slf4j.Marker
data.Determines if the named log level is enabled taking into consideration the given
org.slf4j.Marker
data. Returnstrue
if enabled,false
otherwise. - def isInfoEnabled: Boolean
Determines if the named log level is enabled.
Determines if the named log level is enabled. Returns
true
if enabled,false
otherwise. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isTraceEnabled(marker: Marker): Boolean
Determines if the named log level is enabled taking into consideration the given
org.slf4j.Marker
data.Determines if the named log level is enabled taking into consideration the given
org.slf4j.Marker
data. Returnstrue
if enabled,false
otherwise. - def isTraceEnabled: Boolean
Determines if the named log level is enabled.
Determines if the named log level is enabled. Returns
true
if enabled,false
otherwise. - def isWarnEnabled(marker: Marker): Boolean
Determines if the named log level is enabled taking into consideration the given
org.slf4j.Marker
data.Determines if the named log level is enabled taking into consideration the given
org.slf4j.Marker
data. Returnstrue
if enabled,false
otherwise. - def isWarnEnabled: Boolean
Determines if the named log level is enabled.
Determines if the named log level is enabled. Returns
true
if enabled,false
otherwise. - def name: String
- 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 taking into consideration the given
org.slf4j.Marker
data. - def trace(marker: Marker, message: String, cause: Throwable): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def trace(marker: Marker, message: => Any): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def trace(marker: Marker, message: String): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def trace(message: => Any, cause: Throwable): Unit
Logs the given message at the named log level.
- def trace(message: String, cause: Throwable): Unit
Logs the given message at the named log level.
- def trace(message: => Any): Unit
Logs the given message at the named log level.
- def trace(message: String): Unit
Logs the given message at the named log level.
- 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
%s
which will be replaced with the result[T] of the given function.Example:
infoResult("The answer is: %s") {"42"}
- def traceWith(marker: Marker, message: => Any, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data.Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data. See Parameterized Message Logging - def traceWith(marker: Marker, message: String, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data.Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data. See Parameterized Message Logging - def traceWith(message: => Any, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args.
Log the given parameterized message at the named log level using the given args. See Parameterized Message Logging
- def traceWith(message: String, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args.
Log the given parameterized message at the named log level using the given args. See Parameterized Message Logging
- 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 taking into consideration the given
org.slf4j.Marker
data. - def warn(marker: Marker, message: String, cause: Throwable): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def warn(marker: Marker, message: => Any): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def warn(marker: Marker, message: String): Unit
Logs the given message at the named log level taking into consideration the given
org.slf4j.Marker
data. - def warn(message: => Any, cause: Throwable): Unit
Logs the given message at the named log level.
- def warn(message: String, cause: Throwable): Unit
Logs the given message at the named log level.
- def warn(message: => Any): Unit
Logs the given message at the named log level.
- def warn(message: String): Unit
Logs the given message at the named log level.
- 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
%s
which will be replaced with the result[T] of the given function.Example:
infoResult("The answer is: %s") {"42"}
- def warnWith(marker: Marker, message: => Any, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data.Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data. See Parameterized Message Logging - def warnWith(marker: Marker, message: String, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data.Log the given parameterized message at the named log level using the given args taking into consideration the given
org.slf4j.Marker
data. See Parameterized Message Logging - def warnWith(message: => Any, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args.
Log the given parameterized message at the named log level using the given args. See Parameterized Message Logging
- def warnWith(message: String, args: AnyRef*): Unit
Log the given parameterized message at the named log level using the given args.
Log the given parameterized message at the named log level using the given args. See Parameterized Message Logging