We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d26a764 commit f662a54Copy full SHA for f662a54
lib/src/main/java/com/mazenrashed/logdnaandroidclient/LogDna.kt
@@ -14,15 +14,16 @@ import kotlin.collections.ArrayList
14
15
object LogDna {
16
17
- private const val hostName = "Android App"
+ private var hostName = "Android App"
18
private var apiKey: String? = null
19
var appName: String? = null
20
var logResults = PublishRelay.create<LogResult>()
21
var logResultsListener: ((LogResult) -> Unit)? = null
22
23
- fun init(apiKey: String, appName: String?) {
+ fun init(apiKey: String, appName: String?, hostName: String?) {
24
this.apiKey = apiKey
25
this.appName = appName
26
+ hostName?.let{ this.hostName = it }
27
}
28
29
fun log(line: Line) {
0 commit comments