Skip to content

Commit

Permalink
v0.12.0-alpha1
Browse files Browse the repository at this point in the history
  • Loading branch information
Drakulix committed Feb 5, 2022
1 parent aef0433 commit da2568d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 3 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,22 @@
## v0.12.0
- Replaces the semingly unmainted chrono library with the time crate.
- Addresses through this update
- RUSTSEC-2020-0159 (chrono)
- RUSTSEC-2020-0071 (time)
- `ConfigBuilder::set_time_to_local` is replaced by `ConfigBuilder::set_time_offset_to_local`.
- This function requires the new (and by default activated) `local-offset` feature.
- This function may fail, for more information read the docs.
- simplelog will not determine the local offset dynamically anymore, but only once, when this config option is set.
- Due to safety reasons there is no way to provide this property currently.
- `ConfigBuilder::set_time_offset` now takes a `time::UtcOffset` instead of a `chrono::FixedOffset`.
- `ConfigBuilder::set_time_format` has been replaced by three new variants
- `ConfigBuilder::set_time_format_rfc2822` sets the time format to use the format described by rfc2822.
- `ConfigBuilder::set_time_format_rfc3339` sets the time format to use the format described by rfc3339.
- `ConfigBuilder::set_time_format_custom` sets the time format to a custom time format best created using `time::macros::format_description`.
- Runtime provided time format configuration is possible, but difficult due to lifetime constraints.
- Fixing this will require a solution to https://github.com/time-rs/time/issues/429
- *Note*: The default format is unchanged "[hour]:[minute]:[second]"

## v0.11.0
- Add colored log levels using `ansi_term` (PR #88, credits to @manio)
- Add target padding (PR #85, credits to @bytebeamio)
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "simplelog"
version = "0.11.2"
version = "0.12.0-alpha1"
edition = "2018"
authors = ["Drakulix <github@drakulix.de>"]
description = "A simple and easy-to-use logging facility for Rust's log crate"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -42,7 +42,7 @@ fn main() {
### Results in
```
$ cargo run --example usage
Compiling simplelog v0.10.0 (file:///home/drakulix/Projects/simplelog)
Compiling simplelog v0.12.0 (file:///home/drakulix/Projects/simplelog)
Running `target/debug/examples/usage`
[ERROR] Bright red error
```
Expand All @@ -57,7 +57,7 @@ and my_rust_binary.log
Just add
```
[dependencies]
simplelog = "^0.10.0"
simplelog = "^0.12.0"
```
to your `Cargo.toml`

Expand Down

0 comments on commit da2568d

Please sign in to comment.