Package org.europa.together.service
Class LoggingService
java.lang.Object
org.europa.together.service.LoggingService
Service implementation for the LogbackLogger.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- elmar.dott@gmail.com
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Creates for an application a external log configuration.readLogConfiguration
(String file) Read the log configuration from a file and return the file content.void
writeLogConfiguration
(String content, String file) Write a configuration to a file.
-
Constructor Details
-
LoggingService
@API(status=STABLE, since="1.1") public LoggingService()Constructor.
-
-
Method Details
-
createLogConfiguration
Creates for an application a external log configuration. Copy the configuration file for the Logger from the classpath to the application directory.- Throws:
IOException
-
readLogConfiguration
Read the log configuration from a file and return the file content.- Parameters:
file
- as String- Returns:
- configuration as String
- Throws:
IOException
-
writeLogConfiguration
@API(status=STABLE, since="1.1") public void writeLogConfiguration(String content, String file) throws IOException Write a configuration to a file. The file will only written when the XML is well formed.- Parameters:
content
- as Stringfile
- as String- Throws:
IOException
-