- The
new
method of loggers are now#[must_use]
to prevent confusion whennew
is used called instead ofinit
- Adjusted dependency to support termcolor crate version 1.2 (PR #131, credits to @danielparks)
- 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_local
is replaced byConfigBuilder::set_time_offset_to_local
.- This function requires the new (and by default activated)
local-offset
feature. - 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_offset
now takes atime::UtcOffset
instead of achrono::FixedOffset
.ConfigBuilder::set_time_format
has been replaced by three new variantsConfigBuilder::set_time_format_rfc2822
sets the time format to use the format described by rfc2822.ConfigBuilder::set_time_format_rfc3339
sets the time format to use the format described by rfc3339.ConfigBuilder::set_time_format_custom
sets 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 time-rs/time#429
- Note: The default format is unchanged "[hour]:[minute]:[second]"
- 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
paris
crate (PR #84, credits to @manio)
- Fix flushing with
BufferedStandardStreams
(PR #82, credits to @mrkline)
- Fix TermLogger performance using
termcolor::BufferedStandardStream
(PR #80, credits to @mrkline) - Add write thread name support for
termlog
(PR #76, credits to @zeroflaw)
- Fix wrong argument naming (PR #70, credits to @scvalex)
- Breaking: More color customization options (PR #72, credits to @mrkline)
- Clarify docs on config levels
- 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
- Switch from
term
totermcolor
(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.
- Derive
Clone
,Copy
,PartialEq
,Eq
,Debug
andHash
forTerminalMode
. (PR #56, credits to @panhania)
- Use
target()
instead ofmodule_path()
for filtering as suggested bylog
s docs. (PR #52, credits to @tsidea) - Allow logging thread names and pad thread ids (defaults match the old behaviour). (PR #53, credits to @mulark)
- Fixed time formats with
- Fixed
test
feature
- Allow Level Padding to be configured
- Fix
LevelFilter:Off
not turning off parts of the log messages
- Add local time zone option
- Change config to builder pattern avoiding future major version bumps
- Add further documentation about dealing with
TermLogger
failing term
0.6.* is now also supported
- 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)
- Fix minimal chrono version / update to chrono v0.4.1 (PR #27, credits to @samueltardieu)
- Don't interleave stdout and stderr (PR #23, credits to @hansjorg)
- Updated
simplelog
tolog
0.4.1 - Updated
simplelog
toterm
0.5.1 - Fixed compiler warning about unused
#[macro_use]
- Update
simplelog
tolog
0.4
- Fixed building non-default feature sets
- Publicly export TermLogger Error type
- Removed a debug println! statement
- Fix
None
config value
Config
is not usingLogLevelFilter
anymore butOption<LogLevel>
None
represents no logging of theConfig
parameter at allLogLevelFilter::Off
was supposed to provide this feature, but is actually ordered higher thenLogLevelFilter::Error
, and presents no filtering instead of the incorrectly assumed filter everything.
- Merged PullRequest by Antoni Boucher - Avoid unwrapping in
TermLogger
:TermLogger::new
now returns an OptionTermLogger::init
now 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
Config
struct, 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:
CombinedLogger
has no use for its ownConfig
and does not take the new argument - Optionally use rust's
Default
syntax 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
- 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/
- Initial Release