Comments (9)
Fixed by #95
from simplelog.rs.
chrono is currently used to get the current date (UTC and Local) as well as custom formatting of the printed time string.
(see https://github.com/Drakulix/simplelog.rs/search?q=chrono)
If that sounds like something that time
can also provide, I would accept a PR replacing chrono.
But right now - although I understand that this is rather critical for some people - I just do not have the capacity to do this on my own.
from simplelog.rs.
the more I investigated this the more I doubt switching to time
will help, it currently simply returns Err
every time you want to convert between UTC and Loca or just read out the local time zone :(
from simplelog.rs.
If you open up any issues over at the time
-repository, that can be used to track if this behavior is fixed, please link them here (like you did with the chrono issue). This way, I can easily keep monitoring the situation.
from simplelog.rs.
Just stumbled over this: https://www.reddit.com/r/rust/comments/qs7l6p/psa_the_time_crate_once_again_supports_obtaining
here is a tracking issue: time-rs/time#380
from simplelog.rs.
@Drakulix per chronotope/chrono#639 chrono seems to be unmaintained and wont be fixed. time-rs/time#380 ref by @extrawurst seems to be merged and time updated quite a bit.
will simplelog be updated soon to remove the insecure and unmaintained chrono crate?
from simplelog.rs.
it really depends how chrono Is used though. if we do not rely on timezones the time-rs fix does the trick, otherwise the problem is that the time-rs 'fix' will error if you ask for a localtime (piecing this together from memory, but it had limitations)
from simplelog.rs.
is that with the newest vers of time?
from simplelog.rs.
Alright, I have replaced chrono with time on this branch: #95
Given that this causes some api breakage and is not entirely feature compatible with what simplelog did provide (unsoundly) with chrono, I will not put out a release right away, but ask everything involved and watching to test and review the new changes.
For convenience this was also published as version 0.12.0-alpha1 on crates.io.
When no new issues or suggestions popup, this will be released as 0.12.0 shortly, but otherwise I will take the time needed to revise the api. Anyone with an immediate need to update my use the alpha version(s?) in the meantime.
Please continue the discussion on #95.
(This issue will be kept open until this is resolved for better visibility, but discussion surrounding the new approach/implementation should be directed to the pull request.)
from simplelog.rs.
Related Issues (20)
- set_time_to_local HOT 3
- Option to choice between time and chrono HOT 2
- How to set only `DEBUG` and `ERROR` log output `location`? HOT 1
- Silence reqwest via Config HOT 2
- TermLogger emits colors when stdout is not a TTY HOT 2
- Debug mode for set_time_offset_to_local HOT 1
- WriteLogger error handling? HOT 2
- how do i strip formattting when using WriteLogger & TermLogger in the same CombinedLogger ? HOT 11
- 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
- Chrono and time need an update HOT 1
- Usage question HOT 1
- How to set a log level on each logger separately on the fly ? HOT 3
- paris should respect "set_write_log_enable_colors" HOT 4
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.