Class LoggingService

java.lang.Object
org.europa.together.service.LoggingService

@API(status=STABLE, since="1.1") @Service public final class LoggingService extends Object
Service implementation for the LogbackLogger.
Since:
1.0
Version:
1.0
Author:
elmar.dott@gmail.com
  • Constructor Details

    • LoggingService

      @API(status=STABLE, since="1.1") public LoggingService()
      Constructor.
  • Method Details

    • createLogConfiguration

      @API(status=STABLE, since="1.1") public void createLogConfiguration() throws IOException
      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

      @API(status=STABLE, since="1.1") public String readLogConfiguration(String file) throws IOException
      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 String
      file - as String
      Throws:
      IOException