object Logger extends Serializable
Companion object for com.twitter.util.logging.Logger which provides factory methods for creation.
- 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
- def apply(underlying: org.slf4j.Logger): Logger
Create a com.twitter.util.logging.Logger wrapping the given underlying
org.slf4j.Logger
.Create a com.twitter.util.logging.Logger wrapping the given underlying
org.slf4j.Logger
.- underlying
an
org.slf4j.Logger
- See also
Java users see getLogger(Logger)
val logger = Logger(LoggerFactory.getLogger("name"))
- def apply[T](implicit arg0: ClassTag[T]): Logger
Create a com.twitter.util.logging.Logger for the runtime class wrapped by the implicit
scala.reflect.ClassTag
denoting the runtime classT
.Create a com.twitter.util.logging.Logger for the runtime class wrapped by the implicit
scala.reflect.ClassTag
denoting the runtime classT
.- T
the runtime class type
- Note
Scala singleton object classes are converted to loggers named without the
$
suffix.- See also
https://docs.scala-lang.org/tour/singleton-objects.html
val logger = Logger[MyClass]
- def apply(clazz: Class[_]): Logger
Create a com.twitter.util.logging.Logger named for the given class.
Create a com.twitter.util.logging.Logger named for the given class.
- clazz
class to use for naming the underlying Logger.
- Note
Scala singleton object classes are converted to loggers named without the
$
suffix.- See also
Java users see $GetLoggerClassScaladocLink
https://docs.scala-lang.org/tour/singleton-objects.html
val logger = Logger(classOf[MyClass])
- def apply(name: String): Logger
Create a com.twitter.util.logging.Logger for the given name.
Create a com.twitter.util.logging.Logger for the given name.
- name
name of the underlying
org.slf4j.Logger
.
- See also
Java users see getLogger(String)
val logger = Logger("name")
- 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 getLogger(underlying: org.slf4j.Logger): Logger
Create a Logger wrapping the given underlying
org.slf4j.Logger
.Create a Logger wrapping the given underlying
org.slf4j.Logger
.- underlying
an
org.slf4j.Logger
- See also
Scala users see apply(Logger)
Logger logger = Logger.getLogger(LoggerFactory.getLogger("name"));
- def getLogger(clazz: Class[_]): Logger
Create a Logger named for the given class.
Create a Logger named for the given class.
- clazz
class to use for naming the underlying
org.slf4j.Logger
.
- See also
Scala users see apply(Class)
Logger logger = Logger.getLogger(MyClass.class);
- def getLogger(name: String): Logger
Create a Logger for the given name.
Create a Logger for the given name.
- name
name of the underlying
org.slf4j.Logger
.
- See also
Scala users see apply(String)
Logger logger = Logger.getLogger("name");
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- 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
- 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()