Class LogFactory

java.lang.Object
com.aquima.interactions.foundation.logging.LogFactory

public final class LogFactory extends Object
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 Details

  • Method Details

    • getLogger

      public static Logger getLogger(Class<?> type)
      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

      public static Logger getLogger(String type)
      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

      public static final void registerLogFactory(ILogFactory logFactory)
      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.