Interface Logging

All Known Implementing Classes:
AbstractLogging, Log4j2Logging

public interface Logging
Logging interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    Initialize logging and return logging file path.
    void
    initialize(String path, String name)
    Configure the framework specifically with a log configuration file and name!
    void
    initializeInMemoryConsole(String inMemoryConfigName, String appName)
    Initialize logging with an in-memory-built log4j2 configuration Note: Might have an implementation or not.
    void
    initializeInMemoryFile(String inMemoryConfigName, String appName)
    Initialize logging with an in-memory-built log4j2 configuration and appends output to file.
  • Method Details

    • initialize

      String initialize() throws IOException
      Initialize logging and return logging file path.
      - Path used: 'cfg/logging.xml'
      - Configuration name used: 'default'
      Returns:
      logging file path
      Throws:
      IOException - when reading the configuration fails
    • initialize

      void initialize(String path, String name) throws IOException
      Configure the framework specifically with a log configuration file and name!
      Parameters:
      path - a path to the configuration
      name - name to the configuration
      Throws:
      IOException - when reading the configuration fails
    • initializeInMemoryFile

      void initializeInMemoryFile(String inMemoryConfigName, String appName)
      Initialize logging with an in-memory-built log4j2 configuration and appends output to file. Note: Might have an implementation or not.
      Parameters:
      inMemoryConfigName - virtual configuration name
      appName - application name that is is used as part of the logging output folder
    • initializeInMemoryConsole

      void initializeInMemoryConsole(String inMemoryConfigName, String appName)
      Initialize logging with an in-memory-built log4j2 configuration Note: Might have an implementation or not.
      Parameters:
      inMemoryConfigName - virtual configuration name
      appName - application name that is is used as part of the logging output folder