Class DefaultLoggerCreator

java.lang.Object
org.kawanfw.sql.api.server.logging.DefaultLoggerCreator
All Implemented Interfaces:
LoggerCreator

public class DefaultLoggerCreator
extends Object
implements LoggerCreator
Creates a default Logback/sl4fj Logger for main AceQL activity. Logger has default characteristics:
  • name: DefaultLoggerCreator
  • Log directory: user.home/.kawansoft/log
  • File name pattern: "aceql_%d.log.%i" (example of file created: aceql_2022-07-01.log.1.)
  • Pattern of each line of log: "%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n"}
  • Maximum File Size: 300Mb
  • Total Size Cap: 30Gb
These default values may be superseded by creating a DefaultLoggerCreator.properties file in user.home/.kawansoft/conf.

See the DefaultLoggerCreator.properties format.
Author:
Nicolas de Pomereu
  • Constructor Details

  • Method Details

    • getLogger

      public org.slf4j.Logger getLogger()
      Description copied from interface: LoggerCreator
      Returns the Logger as sl4fj instance
      Specified by:
      getLogger in interface LoggerCreator
      Returns:
      the Logger as sl4fj instance
    • getElements

      public Map<String,​String> getElements()
      Description copied from interface: LoggerCreator
      Return the elements of the Logger: name, fileNamePattern, etc. This allows to give admin users info about the Logger when stating the programe. Implementation is free.
      Specified by:
      getElements in interface LoggerCreator
      Returns:
      the elements of the Logger