simplelog
A simple and easy-to-use logging facility for Rust's log crate
0.12.2
26M downloads/mo
#1852 most downloaded on crates.io
drakulix/simplelog.rs
What this package is like to depend on
Last release 2 years ago
no release in 18 months
Release timing varies
gaps range from 3 weeks to 12 months
Most releases are documented
notes for 26 of 32 stable releases
1 version withdrawn
withdrawn after publishing
10 years old
34 releases · first in 2016
0 releases in the last 12 months
see the full history below
Release timeline
34 releases · Mar 2016 to Mar 2024Releases
latest 34-
0.12.204 Mar 2024Nothing published for this version
-
0.12.102 Mar 2023Nothing published for this version
-
0.12.019 Apr 2022Release notes
Open source →- Replaces the semingly unmaintained chrono library with the time crate.
- Addresses through this update
- RUSTSEC-2020-0159 (chrono)
- RUSTSEC-2020-0071 (time)
ConfigBuilder::set_time_to_localis replaced byConfigBuilder::set_time_offset_to_local.- This function requires the new (and by default activated)
local-offsetfeature. - This function may fail, for more information read the docs.
- simplelog will not determine the local offset dynamically anymore, but only once, when this config option is set.
- Due to safety reasons there is no way to provide this property currently.
- This function requires the new (and by default activated)
ConfigBuilder::set_time_offsetnow takes atime::UtcOffsetinstead of achrono::FixedOffset.ConfigBuilder::set_time_formathas been replaced by three new variantsConfigBuilder::set_time_format_rfc2822sets the time format to use the format described by rfc2822.ConfigBuilder::set_time_format_rfc3339sets the time format to use the format described by rfc3339.ConfigBuilder::set_time_format_customsets the time format to a custom time format best created usingtime::macros::format_description.- Runtime provided time format configuration is possible, but difficult due to lifetime constraints.
- Fixing this will require a solution to https://github.com/time-rs/time/issues/429
- Note: The default format is unchanged "[hour]:[minute]:[second]"
Release notes
Open source →- Replaces the semingly unmainted chrono library with the time crate.
- Addresses through this update
- RUSTSEC-2020-0159 (chrono)
- RUSTSEC-2020-0071 (time)
ConfigBuilder::set_time_to_localis replaced byConfigBuilder::set_time_offset_to_local.- This function requires the new (and by default activated)
local-offsetfeature. - This function may fail, for more information read the docs.
- simplelog will not determine the local offset dynamically anymore, but only once, when this config option is set.
- Due to safety reasons there is no way to provide this property currently.
- This function requires the new (and by default activated)
ConfigBuilder::set_time_offsetnow takes atime::UtcOffsetinstead of achrono::FixedOffset.ConfigBuilder::set_time_formathas been replaced by three new variantsConfigBuilder::set_time_format_rfc2822sets the time format to use the format described by rfc2822.ConfigBuilder::set_time_format_rfc3339sets the time format to use the format described by rfc3339.ConfigBuilder::set_time_format_customsets the time format to a custom time format best created usingtime::macros::format_description.- Runtime provided time format configuration is possible, but difficult due to lifetime constraints.
- Fixing this will require a solution to https://github.com/time-rs/time/issues/429
- Note: The default format is unchanged "[hour]:[minute]:[second]"
-
0.12.0-alpha105 Feb 2022 pre-releaseNothing published for this version
-
0.11.210 Jan 2022Nothing published for this version
-
0.11.108 Dec 2021Nothing published for this version
-
0.11.012 Nov 2021Release notes
Open source →- Add colored log levels using
ansi_term(PR #88, credits to @manio) - Add target padding (PR #85, credits to @bytebeamio)
- Add optional color and style support using
pariscrate (PR #84, credits to @manio)
- Add colored log levels using
-
0.10.227 Sep 2021 -
0.10.122 Sep 2021 withdrawnRelease notes
Open source →- Fix TermLogger performance using
termcolor::BufferedStandardStream(PR #80, credits to @mrkline) - Add write thread name support for
termlog(PR #76, credits to @zeroflaw)
- Fix TermLogger performance using
-
0.10.027 Mar 2021Release notes
Open source →- Fix wrong argument naming (PR #70, credits to @scvalex)
- Breaking: More color customization options (PR #72, credits to @mrkline)
- Clarify docs on config levels
-
0.9.018 Dec 2020Release notes
Open source →- Add customizable level label colors (PR #69. credits to @JarrettBillingsley)
- Remove unneeded TermLogError
- Future-proof config by adding
#[non_exhaustive] - Fix compiling with minimal-versions
-
0.8.017 May 2020Release notes
Open source →- Switch from
termtotermcolor(PR #59. credits to @raybritton) - Fix typo in docs (PR #58, credits to @anthonyjmartinez)
- Switch default padding to
Off. Padding is annoyingly controversial, just set it to whatever you prefer, if you want it.
Release notes
Open source →- Switch from
termtotermcolor(PR #59. credits to @raybritton) - Fix typo in docs (PR #58, credits to @anthonyjmartinez)
- Switch default padding to
Off. Padding is annoyingly controversal, just set it to whatever you prefer, if you want it.
- Switch from
-
0.7.626 Apr 2020Release notes
Open source →- Derive
Clone,Copy,PartialEq,Eq,DebugandHashforTerminalMode. (PR #56, credits to @panhania)
- Derive
-
0.7.528 Mar 2020Release notes
Open source →- Use
target()instead ofmodule_path()for filtering as suggested bylogs docs. (PR #52, credits to @tsidea) - Allow logging thread names and pad thread ids (defaults match the old behaviour). (PR #53, credits to @mulark)
- Use
-
0.7.412 Oct 2019 -
0.7.316 Sep 2019 -
0.7.212 Sep 2019 -
0.7.124 Aug 2019 -
0.7.020 Aug 2019Release notes
Open source →- Add local time zone option
- Change config to builder pattern avoiding future major version bumps
- Add further documentation about dealing with
TermLoggerfailing term0.6.* is now also supported
-
0.6.017 Jun 2019Release notes
Open source →- Add time offset parameter (defaults to UTC)
- Add thread_id output (credits to @kurtlawrence)
- Pad log level
- Add TestLogger (credits to @AlexW-GH)
- Add stream configuration to TermLogger
- Implement allow- and ignore-filtering (credits to @ryankurte)
-
0.5.310 Oct 2018Release notes
Open source →- Fix minimal chrono version / update to chrono v0.4.1 (PR #27, credits to @samueltardieu)
-
0.5.213 May 2018 -
0.5.122 Mar 2018Release notes
Open source →- Updated
simplelogtolog0.4.1 - Updated
simplelogtoterm0.5.1 - Fixed compiler warning about unused
#[macro_use]
- Updated
-
0.5.001 Feb 2018 -
0.4.411 Dec 2017 -
0.4.318 Oct 2017 -
0.4.209 Nov 2016 -
0.4.109 Nov 2016 -
0.4.008 Nov 2016Release notes
Open source →Configis not usingLogLevelFilteranymore butOption<LogLevel>Nonerepresents no logging of theConfigparameter at allLogLevelFilter::Offwas supposed to provide this feature, but is actually ordered higher thenLogLevelFilter::Error, and presents no filtering instead of the incorrectly assumed filter everything.
-
0.3.207 Nov 2016Nothing published for this version
-
0.3.107 Nov 2016Nothing published for this version
-
0.3.007 Nov 2016Release notes
Open source →- Merged PullRequest by Antoni Boucher - Avoid unwrapping in
TermLogger:TermLogger::newnow returns an OptionTermLogger::initnow has its own ErrorType
- Move FileLogger to WriteLogger
- More generic, accepts not only
File, but everything that implementsWrite
- More generic, accepts not only
- Loggers now initialize with a
Configstruct, that list, what parts of the typical log message shall be printed, at which levels- Migrate from
::init(level, ...)to::init(level, Config::default(), ...) - Migrate from
::new(level, ...)or::new(level, Config::default(), ...) - Exception:
CombinedLoggerhas no use for its ownConfigand does not take the new argument - Optionally use rust's
Defaultsyntax to override some settings- E.g. always print location:
Config { location: LogLevelFilter::Error, ..Default::default() } - E.g. never print the target:
Config { target: LogLevelFilter::Off, ..Default::default() }
- E.g. always print location:
- Migrate from
- Target does now by default only log for Debug and lower
- Added CHANGELOG
- Removed some internal code duplication
- Merged PullRequest by Antoni Boucher - Avoid unwrapping in
-
0.2.002 Aug 2016Release notes
Open source →- Local changes that (accidentally) made it to crates.io, but not git
- Basically a worse version of Antoni Boucher 0.3.0 changes
- Got noticed, when he made a Pull Request
Sorry, what a mess. If you still have that version, here are the docs: https://docs.rs/simplelog/0.2.0/
Release notes
Open source →- Local changes that (accidentially) made it to crates.io, but not git
- Basically a worse version of Antoni Boucher 0.3.0 changes
- Got noticed, when he made a Pull Request
Sorry, what a mess. If you still have that version, here are the docs: https://docs.rs/simplelog/0.2.0/
- Local changes that (accidentally) made it to crates.io, but not git
-
0.1.031 Mar 2016