Interface LoggerFactory
-
- All Known Implementing Classes:
StandardOutputLoggerFactory
public interface LoggerFactoryBy default DiSCo has a null logging implementation, to ensure it is free of hazards and optimal by default. For service owners wishing to have visible Logging, implement this class, and instances of Loggers which the LoggerFactory is responsible for producing to e.g. redirect DiSCo logging to the service-under-test's logging solution such as log4j.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default LoggercreateLogger(java.lang.Class clazz)It's typical for logging to be prefixed with the Class name which originated the log.LoggercreateLogger(java.lang.String name)Creates the named Logger.
-
-
-
Method Detail
-
createLogger
Logger createLogger(java.lang.String name)
Creates the named Logger. The created Logger may or may not honor the given name.- Parameters:
name- the name to give the created Logger- Returns:
- the created Logger
-
createLogger
default Logger createLogger(java.lang.Class clazz)
It's typical for logging to be prefixed with the Class name which originated the log. This default convenience method constructs a named logger with the given Class name.- Parameters:
clazz- the Class requesting the named Logger- Returns:
- the created Logger
-
-