Giter Site home page Giter Site logo

Comments (4)

Dushistov avatar Dushistov commented on August 17, 2024

@faisal00813, do you use log-panics crate in additon to android-logger crate? Because of without it your library does not use log infrastructure and just print to stdout/stderr during panic, this is how rust stdlib works.

from android_logger-rs.

faisal00813 avatar faisal00813 commented on August 17, 2024

@Dushistov Thanks!
That helped. But the log message does not have the line number.
I think passing RUST_BACKTRACE should do that. Do you know how to pass env variables to the Android app through android studio?

from android_logger-rs.

Dushistov avatar Dushistov commented on August 17, 2024

@faisal00813, you can try to use libc::setenv in place where you initialize android logger and log-panics.
But I, personally, never use it, because of android runtime print backtrace of crashed code (native and java) to log. May be you just build without debug info?

from android_logger-rs.

Nercury avatar Nercury commented on August 17, 2024

Hey, thanks for bug report. The panic handling won't be in scope of this library. However, it is easy to create your own panic handler: the code in log-panics crate is not very complex.

from android_logger-rs.

Related Issues (17)

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.