Comments (9)
Maybe we should take a look at https://github.com/rust-lang/log
from safe-client-gateway.
We can add this, but it is not required for this issue. This issue is about replacing the print macro with something more inline with proper logging. Therefore the first step would be to use the debug! Macro instead of print!. Once this is changed we can see that logging framework we use to improve the output and filter the logging based on the environment. I am fine with any of the loggers, as I didn't do any comparison between the different loggers.
from safe-client-gateway.
It seems that log level is defined in the .env file: #43
from safe-client-gateway.
nick recommends dbg!
as a replacement for print!
from safe-client-gateway.
Hmm this seems to be a wrapper for println!()
with the {:?}
matcher implied :/ At least that's my understanding of the documentation: https://doc.rust-lang.org/std/macro.dbg.html
We'd still need to find something to log properly.
from safe-client-gateway.
Probably https://docs.rs/log/0.4.11/log/macro.debug.html is more what we want
from safe-client-gateway.
This one is fairly popular: https://crates.io/crates/pretty_env_logger ? Or you don't want to add a new dependency?
from safe-client-gateway.
So let's start at the beginning then :)
from safe-client-gateway.
Ohh never mind we need an implementation to use the facade ... I am fine starting with a simple one. Would be nice to add the log level to the env file and write in the readme the different options (or a link to somewhere where the options are mentioned)
from safe-client-gateway.
Related Issues (20)
- Add `trusted` flag to transactions with no signatures
- fail to execute `cargo run` HOT 13
- 500 error returned on query transactions by id HOT 1
- Build an ARM image on CI execution HOT 1
- Add FEATURE_MESSAGES=true to env
- dataDecoded=null HOT 1
- Remove v1 collectibles endpoint HOT 1
- Cancellation `timestamp` not returned correctly HOT 2
- /v2/flush not flush redis db HOT 1
- Move `/swagger` to `/`
- Swagger: add response types HOT 3
- /v1/balances/supported-fiat-codes 401 code
- /v1/balances/supported-fiat-codes 401 code HOT 7
- /v1/balances/supported-fiat-codes err HOT 6
- "Schemes=http" when domain name configured HOT 3
- Add support for `url` param for `/v1/chains/<chain_id>/safe-apps`
- Process contract/token webhooks HOT 4
- Handler get_supported_fiat panicked HOT 1
- [Arbitrum]Diff statuses for the same tx in the ../transactions/history and ../42161/transactions/id end points HOT 1
- Add endpoint which lists signed EIP-1271 messages 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 safe-client-gateway.