Package ch.autumo.commons.logging
Interface Logging
- All Known Implementing Classes:
AbstractLogging
,Log4j2Logging
public interface Logging
Logging interface.
-
Method Summary
Modifier and TypeMethodDescriptionInitialize 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
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
Configure the framework specifically with a log configuration file and name!- Parameters:
path
- a path to the configurationname
- name to the configuration- Throws:
IOException
- when reading the configuration fails
-
initializeInMemoryFile
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 nameappName
- application name that is is used as part of the logging output folder
-
initializeInMemoryConsole
Initialize logging with an in-memory-built log4j2 configuration Note: Might have an implementation or not.- Parameters:
inMemoryConfigName
- virtual configuration nameappName
- application name that is is used as part of the logging output folder
-