LoggerFactory

cc.otavia.core.slf4a.LoggerFactory
object LoggerFactory

The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for slf4a-simple, and others. LoggerFactory is essentially a wrapper around an ILoggerFactory instance bound with LoggerFactory at compile time.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def getLogger(clz: Class[_], system: ActorSystem): Logger

Return a logger named corresponding to the class passed as parameter, using the statically bound ILoggerFactory instance. In case the the clazz parameter differs from the name of the caller as computed internally by SLF4J, a logger name mismatch warning will be printed but only if the slf4j.detectLoggerNameMismatch system property is set to true. By default, this property is not set and no warnings will be printed even in case of a logger name mismatch.

Return a logger named corresponding to the class passed as parameter, using the statically bound ILoggerFactory instance. In case the the clazz parameter differs from the name of the caller as computed internally by SLF4J, a logger name mismatch warning will be printed but only if the slf4j.detectLoggerNameMismatch system property is set to true. By default, this property is not set and no warnings will be printed even in case of a logger name mismatch.

Value parameters

clz

the returned logger will be named after clazz

system

ActorSystem of the Logger running

Attributes

Returns

a Logger instance

def getLogger(name: String, system: ActorSystem): Logger

Return a logger named according to the name parameter using the statically bound ILoggerFactory instance.

Return a logger named according to the name parameter using the statically bound ILoggerFactory instance.

Value parameters

name

The name of the logger.

system

ActorSystem of the Logger running

Attributes

Returns

a Logger instance