add proper logging
This commit is contained in:
@@ -6,6 +6,15 @@ abstract class ILogRepository {
|
||||
/// Fetches all logs
|
||||
FutureOr<List<LogMessage>> fetchLogs();
|
||||
|
||||
/// Inserts a new log into the DB
|
||||
FutureOr<bool> add(LogMessage log);
|
||||
|
||||
/// Bulk insert logs into DB
|
||||
FutureOr<bool> addAll(List<LogMessage> log);
|
||||
|
||||
/// Clears all logs
|
||||
FutureOr<bool> clear();
|
||||
|
||||
/// Truncates the logs to the most recent [limit]. Defaults to recent 250 logs
|
||||
FutureOr<void> truncateLogs({int limit = 250});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user