Comments (3)
Rethinking it, if users do a anyhow!
or bail!
, then the error will be handled at the upper caller sites, so a log would be output there.
Unless there are further meaningful real-world examples, I think this feature is unnecessary.
from spdlog-rs.
Rethinking it, if users do a
anyhow!
orbail!
, then the error will be handled at the upper caller sites, so a log would be output there.
Well, this is not always the case and I believe there's still use cases of this feature. In some design guidelines log messages are written at the very site where the errors are produced, not at the error handling site.
from spdlog-rs.
In some design guidelines log messages are written at the very site where the errors are produced, not at the error handling site.
Right, but in that case, they are most likely to (or should?) log and then return a None
instead of an Err
with the same log text.
from spdlog-rs.
Related Issues (15)
- Tracking issue for pattern formatters HOT 1
- [Feature Request] Create logger builders from existing loggers HOT 6
- [Bug Report] Source data is not displayed when using log crate HOT 5
- Tracking issue for config (deserialization) HOT 15
- pattern {tid} not shows the source threadid by async sink HOT 1
- Can't build with 0.3.9 - undefined reference to `gettid' HOT 5
- Failed to build for iOS HOT 7
- [Bug Report] Unnecessary recompiling spdlog-rs HOT 4
- how about upgrade syn package from 1 to 2 HOT 2
- [Feature Request] Event handlers for `FileSink` and `RotatingFileSink` HOT 5
- Tracking issue for `runtime_pattern!` macro HOT 1
- [Feature Request] Support formatting parameters in pattern placeholders
- [Bug Report] fails to build on Linux with latest nightly Rust HOT 2
- [Bug Report] `AsyncPoolSink` may lose the last log records and panic on program exit 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 spdlog-rs.