Logging of all read/write operations, errors and drop of underlying IO object.
APACHE-2.0 License
FileLogger
structure which is the new Logger
trait implementation, it writes log records into a file.FileLogger
structure usage.BufferFormatter
and RecordFilter
traits implementations using criterion
library.#[inline]
attribute to several methods to improve performance based on the results of performance tests.doc_lazy_continuation
clippy lint.itertools
from 0.12.1 to 0.13.0mio
from 0.8.10 to 0.8.11log
from 0.4.20 to 0.4.21chrono
from 0.4.34 to 0.4.38tokio
from 1.36.0 to 1.38.0Published by qwerty541 8 months ago
itertools
from 0.11.0 to 0.12.1tokio
from 1.32.0 to 1.36.0env_logger
from 0.10.0 to 0.10.1chrono
from 0.4.31 to 0.4.34Published by qwerty541 about 1 year ago
tokio
from 1.31.0 to 1.32.0chrono
from 0.4.26 to 0.4.31Published by qwerty541 about 1 year ago
itertools
from 0.10.5 to 0.11.0log
from 0.4.18 to 0.4.20tokio
from 1.28.2 to 1.31.0Published by qwerty541 over 1 year ago
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;
Published by qwerty541 over 1 year ago
BufferFormatter::get_separator
method signature.Before:
fn get_separator(&self) -> &'static str;
After:
fn get_separator(&self) -> &str;
new_owned
and new_default
methods for every BufferFormatter
trait implementation.Default
trait for every BufferFormatter
trait implementation.Published by qwerty541 over 1 year ago
HexadecimalFormatter
into lowercase and uppercase (issue #12).Published by qwerty541 over 1 year ago
BufferFormatter
, RecordFilter
and Logger
traits for boxed structures, which already implement such traits.Send
.Published by qwerty541 over 1 year ago
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.Published by qwerty541 over 1 year ago
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>
.Published by qwerty541 over 1 year ago
Cargo.toml
file.Published by qwerty541 over 1 year ago
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.Published by qwerty541 over 1 year ago
LoggedStream
structure with fourth part which will be responsible for log records filter.RecordFilter
which must be implemented by new fourth part of LoggedStream
.RecordFilter
trait: DefaultFilter
which accepts all log records and RecordKindFilter
which accepts log records with kinds specified during construct.Published by qwerty541 over 1 year ago