Skip to content

Releases: qwerty541/logged-stream

v0.4.0

03 Jul 18:30
Compare
Choose a tag to compare

Added

  • Added FileLogger structure which is the new Logger trait implementation, it writes log records into a file.
  • Created an example of FileLogger structure usage.
  • Created basic performance tests for BufferFormatter and RecordFilter traits implementations using criterion library.
  • Added #[inline] attribute to several methods to improve performance based on the results of performance tests.

Fixed

  • Removed unnecessary imports to fix clippy lints.
  • Fixed indentation of documentation comments in several places to fix doc_lazy_continuation clippy lint.

Documentation

  • Table of contents currently hidden by default.
  • Extended description section with use cases information.

Dependencies

  • Updated itertools from 0.12.1 to 0.13.0
  • Updated mio from 0.8.10 to 0.8.11
  • Updated log from 0.4.20 to 0.4.21
  • Updated chrono from 0.4.34 to 0.4.38
  • Updated tokio from 1.36.0 to 1.38.0

v0.3.5

24 Feb 03:46
Compare
Choose a tag to compare
  • Dependencies updates:
    • itertools from 0.11.0 to 0.12.1
    • tokio from 1.32.0 to 1.36.0
    • env_logger from 0.10.0 to 0.10.1
    • chrono from 0.4.31 to 0.4.34

v0.3.4

07 Oct 18:27
Compare
Choose a tag to compare
  • Bump minimal supported rust version (MSRV) from 1.60.0 to 1.63.0
  • README improvements.
  • Dependencies updates:
    • tokio from 1.31.0 to 1.32.0
    • chrono from 0.4.26 to 0.4.31

v0.3.3

12 Aug 22:40
Compare
Choose a tag to compare
  • Bump itertools from 0.10.5 to 0.11.0
  • Bump log from 0.4.18 to 0.4.20
  • Bump tokio from 1.28.2 to 1.31.0

v0.3.2

12 Jun 01:19
Compare
Choose a tag to compare
  • Changed new method signature of all BufferFormatter trait implementations.

Before:

pub fn new(provided_separator: Option<&'static str>) -> Self;

After:

pub fn new(provided_separator: Option<&str>) -> Self;
  • Updated some dependencies.

v0.3.1

09 Jun 02:51
Compare
Choose a tag to compare
  • Changed BufferFormatter::get_separator method signature.

Before:

fn get_separator(&self) -> &'static str;

After:

fn get_separator(&self) -> &str;
  • Added new_owned and new_default methods for every BufferFormatter trait implementation.
  • Implemented Default trait for every BufferFormatter trait implementation.
  • Cover more code with tests.
  • Improved examples section inside README file.

v0.3.0

30 May 03:33
Compare
Choose a tag to compare
  • Add documentation for all public (exported) items (issue #10).
  • Split HexadecimalFormatter into lowercase and uppercase (issue #12).
  • Cover more code with tests.

v0.2.5

02 May 02:01
Compare
Choose a tag to compare
  • Implemented BufferFormatter, RecordFilter and Logger traits for boxed structures, which already implement such traits.
  • Implemented such traits for their boxed trait objects.
  • Such trait now required to be Send.
  • Covered with test all changes above.

v0.2.4

29 Apr 19:51
Compare
Choose a tag to compare
  • Traits BufferFormatter, RecordFilter and Logger now are object safe and do not require Sized implementation. This is the same change as in the previous minor version, but done correctly and covered with tests. Unfortunately I had a misunderstanding of trait object safety.

v0.2.3

26 Apr 00:35
Compare
Choose a tag to compare
  • Structures which implement BufferFormatter, RecordFilter and Logger traits now required to be Sized. This change allows to use the following traits as trait-objects i.e. Box<dyn BufferFormatter>.