trait
LoggerFactory[+T <: Logger] extends AnyRef
Abstract Value Members
-
abstract
def
getLogger(name: String): T
Concrete Value Members
-
final
def
!=(arg0: AnyRef): Boolean
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: AnyRef): Boolean
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
final
def
getLogger[C](implicit arg0: Manifest[C]): T
-
final
def
getLogger(c: Class[_]): T
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
Inherited from AnyRef
Inherited from Any
This class gives you a way to create Logger classes. Using the old patterns established by log4j, you can either give each Logger a name or use the convention of naming your Loggers based on the class doing the logging. If you only want to do the latter, you can simply follow the pattern of extending the Logging trait for your application and it will create a Logger per instance for you. If that's not what you want, for example, if you want a special Logger with a simple name like "ERRORS," you can create that Logger explicitly from the LoggerManager. It's fine to mix the styles.