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
.
an org.slf4j.Logger
Java users see getLogger(Logger)
val logger = Logger(LoggerFactory.getLogger("name"))
Create a com.twitter.util.logging.Logger for the runtime class wrapped
by the implicit scala.reflect.ClassTag
denoting the runtime class T
.
Create a com.twitter.util.logging.Logger for the runtime class wrapped
by the implicit scala.reflect.ClassTag
denoting the runtime class T
.
the runtime class type
val logger = Logger[MyClass]
Create a com.twitter.util.logging.Logger named for the given class.
Create a com.twitter.util.logging.Logger named for the given class.
class to use for naming the underlying Logger.
Java users see getLogger(Class)
val logger = Logger(classOf[MyClass])
Create a com.twitter.util.logging.Logger for the given name.
Create a com.twitter.util.logging.Logger for the given name.
name of the underlying org.slf4j.Logger
.
Java users see getLogger(String)
val logger = Logger("name")
Create a Logger wrapping the given underlying
org.slf4j.Logger
.
Create a Logger wrapping the given underlying
org.slf4j.Logger
.
an org.slf4j.Logger
Scala users see apply(Logger)
Logger logger = Logger.getLogger(LoggerFactory.getLogger("name"));
Create a Logger named for the given class.
Create a Logger named for the given class.
class to use for naming the underlying org.slf4j.Logger
.
Scala users see apply(Class)
Logger logger = Logger.getLogger(MyClass.class);
Create a Logger for the given name.
Create a Logger for the given name.
name of the underlying org.slf4j.Logger
.
Scala users see apply(String)
Logger logger = Logger.getLogger("name");
Companion object for com.twitter.util.logging.Logger which provides factory methods for creation.