Skip to content

Commit

Permalink
Derive PartialEq for logger config builders (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez committed Feb 22, 2022
1 parent 90ca5c6 commit 63e9b2a
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 4 deletions.
6 changes: 6 additions & 0 deletions fern-logger/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security -->

## 0.5.0 - 2022-02-22

### Added

- Derive `PartialEq` on `LoggerConfigBuilder` and `LoggerOutputConfigBuilder`;

## 0.4.0 - 2022-02-18

### Added
Expand Down
2 changes: 1 addition & 1 deletion fern-logger/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fern-logger"
version = "0.4.0"
version = "0.5.0"
authors = [ "IOTA Stiftung" ]
edition = "2021"
description = "Convenient and configurable multi-output logger"
Expand Down
4 changes: 2 additions & 2 deletions fern-logger/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const DEFAULT_OUTPUT_LEVEL_FILTER: LevelFilter = LevelFilter::Info;
const DEFAULT_COLOR_ENABLED: bool = false;

/// Builder for a logger output configuration.
#[derive(Default, Deserialize)]
#[derive(Default, Deserialize, PartialEq)]
#[must_use]
pub struct LoggerOutputConfigBuilder {
/// Name of an output file, or `stdout` for standard output.
Expand Down Expand Up @@ -141,7 +141,7 @@ impl LoggerOutputConfig {
}

/// Builder for a logger configuration.
#[derive(Default, Deserialize)]
#[derive(Default, Deserialize, PartialEq)]
#[must_use]
pub struct LoggerConfigBuilder {
/// Width of the target section of a log.
Expand Down
6 changes: 6 additions & 0 deletions trace-tools/trace-tools/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Security -->

## 0.3.0 - 2022-XX-XX

### Changed

- Dependencies update;

## 0.2.0 - 2021-02-18

### Added
Expand Down
2 changes: 1 addition & 1 deletion trace-tools/trace-tools/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ keywords = [ "iota", "tangle", "task", "trace" ]
homepage = "https://www.iota.org"

[dependencies]
fern-logger = { version = "0.4.0", path = "../../fern-logger", default-features = false }
fern-logger = { version = "0.5.0", path = "../../fern-logger", default-features = false }
time-helper = { version = "0.1.0", path = "../../time-helper", default-features = false }
trace-tools-attributes = { version = "0.1.0", path = "../trace-tools-attributes", default-features = false }

Expand Down

0 comments on commit 63e9b2a

Please sign in to comment.