inrista / loggliest Goto Github PK
View Code? Open in Web Editor NEWAndroid Loggly client using the HTTP/S bulk api.
License: Apache License 2.0
Android Loggly client using the HTTP/S bulk api.
License: Apache License 2.0
Hi,
First thanks for your library that allowed us to boot strap loggly in our Android app very quickly!
Quick request, is is possible to remove those if(BuildConfig.DEBUG) in those Loggly.v() and Loggly.d() calls since the app deployed in JCenter is built in release mode?
In any case, I can do it in my copy of the source or do a pull request. I was just thinking other library users may benefit from it.
My reasoning behind it / use-case is that we can control the iOS and Android log-level server-side e.g. we start logging info and above by default but if a device starts to misbehave, we can turn on high-granularity verbose / debug logging for that particular device to facilitate debugging.
Since that decision is made at the app-level, no need to filter it on the library (just adding a note in the javadoc that this will emit a log of logging and battery / data and loggly storage usage will increase so it should used carefully^^).
Please let me know if this is a valid request.
Thanks,
-Antoine
Fatal Exception: java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1441)
at java.util.HashMap$KeyIterator.next(HashMap.java:1465)
at com.inrista.loggliest.Loggly.logToFile(Loggly.java:629)
at com.inrista.loggliest.Loggly.access$700(Loggly.java:105)
at com.inrista.loggliest.Loggly$1.run(Loggly.java:372)
at java.lang.Thread.run(Thread.java:764)
I have declared the init in class extending Application but other classes cannot find the variable Loggly.
error: cannot find symbol variable Loggly
Hi there,
Nice lib.
Question: I want to log a few attributes on the same log entry. So for example,
One record would be:
{
"name": "orcaman",
"age: 29
}
Another record would be:
{
"name": "sally",
"age: 49
}
So that in Loggly I could create a pie chart for example by "name".
Thing is, with current logging mechanism, I can only log key/value per log entry. If I use JSON as the value, it gets nested, and then Loggly would not index it (so if I go
key = "something"
value = "
{
"name": "sally",
"age: 49
}
"
Loggly would not index by age as it's an "inner" JSON.
Just in case I'm missing this - is it possible using the current code?
Cheers
Lib Version: 0.2
Android OS: Android 10
Device: samsung SM-A205U
Trace:
java.lang.NullPointerException: Attempt to get length of null array
at com.inrista.loggliest.Loggly.logToFile(Loggly.java:4)
at com.inrista.loggliest.Loggly$1.run(Loggly.java:17)
at java.lang.Thread.run(Thread.java:919)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.