Interface LoggingService
-
- All Known Implementing Classes:
LoggingServiceImpl
public interface LoggingServiceContains the methods used for logging.- Author:
- Lina Sofia Cardona Martinez <lina.cardona@kuwaiba.org>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidregisterLog(String loggerName, String path, String fileName, int maxIndex)Register a log channel with a rotation of logs per time period.voidregisterLog(String loggerName, String path, String fileName, String maxFileSize, int maxIndex)Register a log channel with a log rotation by file size.voidwriteLogMessage(LoggerType type, Class source, String message)Write entries in the logvoidwriteLogMessage(LoggerType type, Class source, String message, Throwable ex)Writes error entries in the log
-
-
-
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 classmessage- 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 classmessage- Message to be written in the logex- 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 packagespath- Path where the log is savedfileName-maxFileSize- Maximum file sizemaxIndex- 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 packagesfileName-maxIndex-
-
-