public interface LogMapper
Modifier and Type | Method and Description |
---|---|
List<? extends Log> |
getAll()
Retrieved all stored logs, used by tests
|
Long |
insertDebug(DebugLog debugLog,
Long connDbId)
Inserts a new debug log to logs table.
|
Long |
insertError(ErrorLog errorLog,
Long errorId,
Long connDbId)
Inserts new error log to logs table.
|
Integer |
pruneExpiredNonExecutionLogs(double pruneAfter)
Deletes expired logs that do not belong to any execution.
|
Integer |
pruneLogsFromApplication(String application)
Prune logs that were emitted from a given application
|
Long insertError(@Param(value="log") ErrorLog errorLog, @Param(value="errorId") Long errorId, @Param(value="connDbId") Long connDbId)
errorLog
- error log to be inserteconnDbId
- connection db iderrorId
- error metadata idLong insertDebug(@Param(value="log") DebugLog debugLog, @Param(value="connDbId") Long connDbId)
debugLog
- debug log to be insertedconnDbId
- connection db idInteger pruneLogsFromApplication(String application)
application
- application from which should the logs be deletedInteger pruneExpiredNonExecutionLogs(double pruneAfter)
pruneAfter
- time period, after which logs expireCopyright © 2020. All rights reserved.