Comments (8)
Yes, this was introduced by 084d57a .
I can easily make this configurable via the ConfigBuilder.
from simplelog.rs.
I have introduced a new config option on branch feature/config_padding
(see #45).
@evitalis can you verify, that this fixes your issue?
If it does, I'll update the examples and release it as 0.7.2 shortly.
from simplelog.rs.
Thanks. I can check it out a bit later today. Is it possible to use the defaults and only override this one setting by chance?
from simplelog.rs.
Thanks. I can check it out a bit later today. Is it possible to use the defaults and only override this one setting by chance?
Yes, just set this in the ConfigBuilder
and ignore the rest. Then pass the built config to your logger.
from simplelog.rs.
Seemed to work for me using my example code as a test. Do you think it may be worth setting the padding to off by default instead of the left padding?
from simplelog.rs.
Seemed to work for me using my example code as a test. Do you think it may be worth setting the padding to off by default instead of the left padding?
I think I do not want to change the semantics of the default values without a major version break to make people aware. And since simplelog
had quite a lot major releases recently I will probably delay this decision for now.
Maybe I should open an issue on defaults in general, some other users might have something to say about it as well.
But I am glad this is working, I will release it soon in that case.
from simplelog.rs.
Makes sense, maybe on 0.8 the default could be off or right. I am curious why it ends up being left padded though, Western languages usually right pad since they are read left to right.
In any event thanks for the quick update to this.
from simplelog.rs.
Makes sense, maybe on 0.8 the default could be off or right. I am curious why it ends up being left padded though, Western languages usually right pad since they are read left to right.
Yes, 0.8 should absolutely change this. If you are interested where this came from: #35.
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.