-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract common methods from LogServie and LogMessageService to a comm…
…on BaseLogService interface.
- Loading branch information
1 parent
c2b4ace
commit edf4662
Showing
5 changed files
with
99 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
52 changes: 52 additions & 0 deletions
52
...e-android-sdk/src/main/java/io/embrace/android/embracesdk/internal/logs/BaseLogService.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package io.embrace.android.embracesdk.internal.logs | ||
|
||
import io.embrace.android.embracesdk.session.MemoryCleanerListener | ||
|
||
internal interface BaseLogService : MemoryCleanerListener { | ||
/** | ||
* Finds all IDs of log events at info level within the given time window. | ||
* | ||
* @param startTime the beginning of the time window | ||
* @param endTime the end of the time window | ||
* @return the list of log IDs within the specified range | ||
*/ | ||
fun findInfoLogIds(startTime: Long, endTime: Long): List<String> | ||
|
||
/** | ||
* Finds all IDs of log events at warning level within the given time window. | ||
* | ||
* @param startTime the beginning of the time window | ||
* @param endTime the end of the time window | ||
* @return the list of log IDs within the specified range | ||
*/ | ||
fun findWarningLogIds(startTime: Long, endTime: Long): List<String> | ||
|
||
/** | ||
* Finds all IDs of log events at error level within the given time window. | ||
* | ||
* @param startTime the beginning of the time window | ||
* @param endTime the end of the time window | ||
* @return the list of log IDs within the specified range | ||
*/ | ||
fun findErrorLogIds(startTime: Long, endTime: Long): List<String> | ||
|
||
/** | ||
* The total number of info logs that the app attempted to send. | ||
*/ | ||
fun getInfoLogsAttemptedToSend(): Int | ||
|
||
/** | ||
* The total number of warning logs that the app attempted to send. | ||
*/ | ||
fun getWarnLogsAttemptedToSend(): Int | ||
|
||
/** | ||
* The total number of error logs that the app attempted to send. | ||
*/ | ||
fun getErrorLogsAttemptedToSend(): Int | ||
|
||
/** | ||
* The total number of unhandled exceptions sent. | ||
*/ | ||
fun getUnhandledExceptionsSent(): Int | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters