Comments (4)
@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.
@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.
@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.
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)
- Add a way to unhook the logger
- Is there a way to filter logs origin? HOT 3
- Expose AndroidLogger HOT 6
- Don't use `::` as a module separator HOT 4
- RFC: may be use std::sync::Once instead of std::sync::RwLock ? HOT 2
- Include module path in log message if explicit tag present HOT 2
- Enhance module path match in filter HOT 1
- Allow for multiple log level depending on the module HOT 2
- Use MaybeUninit instead of mem::uninitialized() or somehow remove unitialized memory usage HOT 1
- Setting levels for multiple crates does not function? HOT 1
- How to link to android log lib? HOT 3
- Consider implementing `Log::enabled` HOT 1
- Support selecting the target log buffer HOT 3
- Compilation error HOT 3
- Crate compilation broken on Android HOT 5
- Not all Android versions do now log HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android_logger-rs.