Giter Club home page Giter Club logo

loggliest's People

Contributors

inrista avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

loggliest's Issues

Remove verbose and debug log level filtering in release lib?

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 com.inrista.loggliest.Loggly.logToFile

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)

Logging multiple attributes on the same record

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

java.lang.NullPointerException: Attempt to get length of null array

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.