-
Notifications
You must be signed in to change notification settings - Fork 7
/
EmbLogger.kt
34 lines (27 loc) · 911 Bytes
/
EmbLogger.kt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package io.embrace.android.embracesdk.logging
/**
* A simple interface that is used within the Embrace SDK for logging.
*/
internal interface EmbLogger {
var internalErrorService: InternalErrorService?
/**
* Logs a debug message with an optional throwable.
*/
fun logDebug(msg: String, throwable: Throwable? = null)
/**
* Logs an informational message.
*/
fun logInfo(msg: String)
/**
* Logs a warning message with an optional throwable.
*/
fun logWarning(msg: String, throwable: Throwable? = null, logStacktrace: Boolean = false)
/**
* Logs a warning message with an optional error.
*/
fun logError(msg: String, throwable: Throwable? = null, logStacktrace: Boolean = false)
/**
* Logs a warning message that the SDK is not yet initialized for the given action.
*/
fun logSdkNotInitialized(action: String)
}