logged-stream

Logging of all read/write operations, errors and drop of underlying IO object.

APACHE-2.0 License

Downloads
10.3K
Stars
4
logged-stream - v0.4.0 Latest Release

Published by qwerty541 4 months ago

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
logged-stream - v0.3.5

Published by qwerty541 8 months ago

  • 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
logged-stream - v0.3.4

Published by qwerty541 about 1 year ago

  • 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
logged-stream - v0.3.3

Published by qwerty541 about 1 year ago

  • 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
logged-stream - v0.3.2

Published by qwerty541 over 1 year ago

  • 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.
logged-stream - v0.3.1

Published by qwerty541 over 1 year ago

  • 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.
logged-stream - v0.3.0

Published by qwerty541 over 1 year ago

  • Add documentation for all public (exported) items (issue #10).
  • Split HexadecimalFormatter into lowercase and uppercase (issue #12).
  • Cover more code with tests.
logged-stream - v0.2.5

Published by qwerty541 over 1 year ago

  • 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.
logged-stream - v0.2.4

Published by qwerty541 over 1 year ago

  • 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.
logged-stream - v0.2.3

Published by qwerty541 over 1 year ago

  • 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>.
logged-stream - v0.2.2

Published by qwerty541 over 1 year ago

  • Add categories into Cargo.toml file.
  • Exclude examples folder from published package to decrease its size.
  • README improvements.
logged-stream - v0.2.1

Published by qwerty541 over 1 year ago

  • Exclude several redundant files and folders from published package to decrease its size.
  • ConsoleLogger now does not include timestamp into log string, it can be done by env_logger.
  • ConsoleLogger now ignores provided level when receive error kind log records.
  • Several README improvements.
logged-stream - v0.2.0

Published by qwerty541 over 1 year ago

  • Extend LoggedStream structure with fourth part which will be responsible for log records filter.
  • Added new trait RecordFilter which must be implemented by new fourth part of LoggedStream.
  • Added several implementations of RecordFilter trait: DefaultFilter which accepts all log records and RecordKindFilter which accepts log records with kinds specified during construct.
  • Improved several sections inside README file.
  • Removed redundant dependencies features.
logged-stream - v0.1.0

Published by qwerty541 over 1 year ago