Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Derive PartialEq for logger config builders #27

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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