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 Objecttrait Matchableclass Any
- Self type
-
LoggerFactory.type
Members list
Value members
Concrete methods
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
Return a logger named corresponding to the class passed as parameter, using ActorSystem.global.
Return a logger named corresponding to the class passed as parameter, using ActorSystem.global.
Value parameters
- clz
-
the returned logger will be named after clazz
Attributes
- Returns
-
a Logger instance
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