Comments (5)
There is currently no way in simplelog
to filter by crate name.
Now that simplelog
has a Config
struct since v0.3 this should be relatively easy to do, I will try to find some time to add that feature soon.
from simplelog.rs.
Cool thanks :) as tokio spams a bit on debug.
from simplelog.rs.
For the reference:
In postgres crate, author implemented this via features:
sfackler/rust-postgres@d99843b
... maybe you can ask for tokio authors to do it as well?
In fact I am facing the same problem with rust-ini, reported here:
zonyitoo/rust-ini#44
from simplelog.rs.
Ran into this also with spammy output from cargo & http crates that I wanted to filter out but couldn't find a mechanism to do it in simplelog
from simplelog.rs.
I think this is addressed well enough by #36. If any use-case is not covered, please reopen.
from simplelog.rs.
Related Issues (20)
- How can append data in WriteLogger if file exist? HOT 2
- Add a helper function to initialize loggers with default config HOT 1
- ConfigBuilder::add_filter_allow example documentation HOT 3
- attempted to set a logger after the logging system was already initialized HOT 3
- Updating filters after initialization
- How to update file path of the `WriteLogger` after I call `CombinedLogger::init`? HOT 2
- question: full time stamp? HOT 1
- Add module level
- logs with rfc3339 time have no consistent length HOT 2
- README should call out feature differences vs. env_logger
- TestLogger not working
- crash on openbsd with set_time_offset_to_local() HOT 1
- how do I config the logger to log only the actual message? HOT 1
- Please make a v0.12.2 release HOT 5
- `enabled()` methods don't respect the target filter
- Question: is it safe to use `TermLogger` across threads without additional synchronisation? HOT 2
- "termcolor" version is too restrictive HOT 3
- Implement key/value feature of the log crate (now stable)
- Error with rust-nightly: type annotations needed for Box<_> HOT 2
- Multiple, intependen logger HOT 1
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 simplelog.rs.