Class LogFactory
java.lang.Object
com.aquima.interactions.foundation.logging.LogFactory
Use LogFactory to get a Logger that is defined on the command line For example start your jvm using:
-Daquima-log-factory=com.aquima.interactions.foundation.logging.java.Slf4jFactory to use the slf4j logger.
- Since:
- 5.0
- Author:
- F. van der Meer
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Logger
This function can be used to locate a logger for the specified class.static Logger
This function can be used to locate a logger for the specified name.static final void
registerLogFactory
(ILogFactory logFactory) This method allows auto-configuration overriding by calling this method.
-
Field Details
-
LOGGING_COMMANDLINE_KEY
- See Also:
-
-
Method Details
-
getLogger
This function can be used to locate a logger for the specified class.- Parameters:
type
- The class for which the logger should be created. This creates a 'unique' logger for this class.- Returns:
- The logger which is never null
-
getLogger
This function can be used to locate a logger for the specified name.- Parameters:
type
- The name for which the logger should be created. This creates a 'unique' logger for this name.- Returns:
- The logger which is never null
-
registerLogFactory
This method allows auto-configuration overriding by calling this method. It will register the specified log factory as the current logging system. It is not the recommended way of initialising the logging system.- Parameters:
logFactory
- The log factory which should be used.
-