Closed allburov closed 1 year ago
Dumb me, of course it logs only one time because I added only a single log.info
expression :D
Never mind, now I see all send() after each logs.
2023-10-27 20:58:26.716 31367-31367 AndroidLokiHttpClient com.revi.kitandroid D AndroidLokiHttpClient(com.github.loki4j.client.http.HttpConfig@be9258)
2023-10-27 20:58:27.748 31367-31440 AndroidLokiHttpClient com.revi.kitandroid D send()
2023-10-27 20:58:28.855 31367-31440 AndroidLokiHttpClient com.revi.kitandroid D send()
2023-10-27 20:58:29.940 31367-31440 AndroidLokiHttpClient com.revi.kitandroid D send()
2023-10-27 20:58:31.037 31367-31440 AndroidLokiHttpClient com.revi.kitandroid D send()
2023-10-27 20:58:38.648 31367-31440 AndroidLokiHttpClient com.revi.kitandroid D send()
2023-10-27 20:58:39.847 31367-31440 AndroidLokiHttpClient com.revi.kitandroid D send()
2023-10-27 20:58:40.942 31367-31440 AndroidLokiHttpClient com.revi.kitandroid D send()
2023-10-27 20:58:48.557 31367-31440 AndroidLokiHttpClient com.revi.kitandroid D send()
2023-10-27 20:58:49.866 31367-31440 AndroidLokiHttpClient com.revi.kitandroid D send()
We can assume it works perfectly on Android with logback-android (except it has no client, but it's not a problem I hope and I'll do implement it in few days)
Hi, thank you for the wonderful project you've made! We're using Timber as the main log system, looking forward for https://github.com/loki4j/loki-logback-appender/issues/113!
Right now I'm trying to add the Appender to Android project with logback-android and wanna implement my own Sender\Client for that (because there's no ApacheHttpClient or JavaHttpClient available for us, mobile developers :( )
I've written a simple fake client that just log
send()
command and the problem is that I see in logs it's been called once and this is it , even if I setbatchTimeoutMs=1000
. No errors after that, it just silently do nothing :(I do understand that it's likely because of Android infrastructure and not fully available logback version for android, but may be you could guide me where I should look to fix the issue?
Here's a simple client that just logs the
send()
command and do nothing more (it's written on Kotlin, but it's easy to get idea - nothing more thanLog
)Here's my
logback.xml