Interface LoggingService

  • All Known Implementing Classes:
    LoggingServiceImpl

    public interface LoggingService
    Contains the methods used for logging.
    Author:
    Lina Sofia Cardona Martinez <lina.cardona@kuwaiba.org>
    • Method Detail

      • writeLogMessage

        void writeLogMessage​(LoggerType type,
                             Class source,
                             String message)
        Write entries in the log
        Parameters:
        type - Type of message (e.g. info, debug)
        source - Log message source class
        message - Message to be written in the log
      • writeLogMessage

        void writeLogMessage​(LoggerType type,
                             Class source,
                             String message,
                             Throwable ex)
        Writes error entries in the log
        Parameters:
        type - Type of message (e.g. info, debug)
        source - Log message source class
        message - Message to be written in the log
        ex - Exception to be displayed in the log
      • registerLog

        void registerLog​(String loggerName,
                         String path,
                         String fileName,
                         String maxFileSize,
                         int maxIndex)
        Register a log channel with a log rotation by file size.
        Parameters:
        loggerName - Log name to be taken into account. In the case of logback, this parameter defines which elements are included in a specific log according to the following packages
        path - Path where the log is saved
        fileName -
        maxFileSize - Maximum file size
        maxIndex - Number of files saved
      • registerLog

        void registerLog​(String loggerName,
                         String path,
                         String fileName,
                         int maxIndex)
        Register a log channel with a rotation of logs per time period.
        Parameters:
        loggerName - Log name to be taken into account.
        path - In the case of logback, this parameter defines which elements are included in a specific log according to the following packages
        fileName -
        maxIndex -