log4rs
A highly configurable multi-output logging implementation for the `log` facade
1.4.0
22M downloads/mo
#1970 most downloaded on crates.io
estk/log4rs
What this package is like to depend on
Last release 11 months ago
05 Sep 2025
Release timing varies
gaps range from 4 weeks to 1.3 years
Some releases are documented
notes for 16 of 39 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
43 releases · first in 2015
1 release in the last 12 months
see the full history below
Release timeline
43 releases · Feb 2015 to Sep 2025Releases
latest 43-
1.4.005 Sep 2025Release notes
Open source →Fixed
- Two minor typo fixes in
Configuration.md. (#425 @RobertJacobsonCDC)
New
- Support for Key-Value pairs (#362 @ellttBen)
- Add time serialization into log file (#374 @TuEmb)
- Public
TimeTriggerConfigfields (#370 @Dirreke) - Left truncation unicode support (#285 @moh-eulith)
- Zstd compression for log files (#363 @cristian-prato)
- Add onstartup trigger (#343 @Dirreke)
- Add config parsing tests (#357 @bconn98)
- Add handle retrieval after log initialization (#393 @izolyomi)
Changed
- update mock_instant and small refactor (#424 @CosminPerRam)
- remove oncecell dependency (#423 @CosminPerRam)
- MSRV to 1.75
- Update deps: (thread-id, thiserror, mock_instant, rand)
- Remove derivative crate (#408 @royb3)
- Remove where_clauses_object_safety lint allow (#377 @Dirreke)
- Refactor of time trigger logic (#347 @Dirreke)
- Readme updated (#361 @bconn98)
- Two minor typo fixes in
-
1.4.0-rc224 Jun 2025 pre-releaseNothing published for this version
-
1.4.0-rc129 May 2025 pre-releaseRelease notes
Open source →New
- Support for Key-Value pairs (#362 @ellttBen)
- Add time serialization into log file (#374 @TuEmb)
- Public
TimeTriggerConfigfields (#370 @Dirreke) - Left truncation unicode support (#285 @moh-eulith)
- Zstd compression for log files (#363 @cristian-prato)
- Add onstartup trigger (#343 @Dirreke)
- Add config parsing tests (#357 @bconn98)
- Add handle retrieval after log initialization (#393 @izolyomi)
Changed
- MSRV to 1.75
- Update deps: (thread-id, thiserror, mock_instant, rand)
- Remove derivative crate (#408 @royb3)
- Remove where_clauses_object_safety lint allow (#377 @Dirreke)
- Readme updated (#361 @bconn98)
New Contributors
- @izolyomi made their first contribution in #393
- @ellttBen made their first contribution in #362
- @royb3 made their first contribution in #408
- @TuEmb made their first contribution in #374
- @cristiano-prato made their first contribution in #363
- @moh-eulith made their first contribution in #285
Full Changelog: v1.3.0...v1.4.0-rc1
-
1.3.010 Feb 2024Release notes
Open source →See the changelog for more details.
New
- Add debug and release formatters
- Documentation on configuring the tool
- Code Coverage CI
- CVE Audit CI
- EditorConfig CI
- Code Owners
- NO_COLOR, CLICOLOR, CLICOLOR_FORCE controls
- Example of inline configuration with file rotation
- Time Based Trigger
Changed
- Update minimum supported rust to 1.69 for CVE-2020-26235
- Update
arc-swapto1.6 - Update
logto0.4.20 - Update
humantimeto2.1 - Update
serde_yamlto0.9 - Update
tomlto0.8 - Update
derivativeto2.2 - Update
tempfileto3.8 - Update
chronoto0.2.23 - Moved
levelfield beforemessagein json format - Legacy test moved to examples
Fixed
- README typo regarding building for dev on windows
- Apply editorconfig
- Swap rustfmt configuration to
imports_granularity="Crate"over deprecatedmerge_imports = true
-
1.2.011 Oct 2022Release notes
Open source →See the changelog for more details.
Changed
- Update minimum supported rust to 1.56 for
edition 2021
Fixed
- Typemap fix: #282
- Update minimum supported rust to 1.56 for
-
1.1.122 Apr 2022Release notes
Open source →See the changelog for more details.
New
Changed
- Removed palaver
- Update
parking_lotto0.11. - Update minimum supported rust to 1.49 for
parking_lot
Fixed
-
1.1.021 Apr 2022Nothing published for this version
-
1.0.016 Dec 2020Nothing published for this version
-
1.0.0-alpha-230 Sep 2020 pre-releaseNothing published for this version
-
1.0.0-alpha-123 Jul 2020 pre-releaseNothing published for this version
-
0.13.022 Jul 2020Nothing published for this version
-
0.12.006 May 2020 -
0.11.011 Mar 2020Nothing published for this version
-
0.10.029 Jan 2020Nothing published for this version
-
0.9.029 Nov 2019Nothing published for this version
-
0.8.303 Apr 2019 -
0.8.203 Apr 2019Release notes
Open source →Changed
- Switched from crossbeam's
ArcCellto arc-swap'sArcSwapinternally - Upgraded toml to 0.5
- Switched from crossbeam's
-
0.8.117 Oct 2018Release notes
Open source →Added
- Support thread IDs in both JSON and pattern encoders
Changed
- Upgraded to serde_yaml 0.8
-
0.8.026 Dec 2017Release notes
Open source →Added
- XML-formatted config files are now supported
Append::flushmethod
Changed
- Upgraded to log 0.4
-
0.7.026 Apr 2017 -
0.6.305 Apr 2017Release notes
Open source →Added
Changed
- Fix console appender to actually log to stdout when requested
-
0.6.201 Mar 2017 -
0.6.111 Feb 2017 -
0.6.010 Feb 2017Release notes
Open source →Added
- Enable most features by default. This increases compile times a bit, but is way less confusing for people since components aren't randomly missing
- Restructure config deserialization. A log4rs config can now be embedded in other config structures and deserialized by downstream users
Changed
- Update to serde 0.9
- Use serde_derive instead of manual codegen
- Drop TOML support. The toml crate hasn't yet been released with support for serde 0.9, but we'll add support back when that lands
-
0.5.226 Nov 2016 -
0.5.121 Nov 2016Release notes
Open source →Added
Changed
- Update serde_yaml
- Fix file modification time checks in config reloader
-
0.5.004 Oct 2016Nothing published for this version
-
0.4.823 Jun 2016Nothing published for this version
-
0.4.712 Jun 2016Nothing published for this version
-
0.4.626 May 2016Nothing published for this version
-
0.4.525 May 2016Nothing published for this version
-
0.4.423 May 2016Nothing published for this version
-
0.4.313 Apr 2016Nothing published for this version
-
0.4.205 Apr 2016Nothing published for this version
-
0.4.102 Apr 2016Nothing published for this version
-
0.4.030 Mar 2016Nothing published for this version
-
0.3.326 May 2015Nothing published for this version
-
0.3.204 Apr 2015Nothing published for this version
-
0.3.126 Mar 2015Nothing published for this version
-
0.3.025 Mar 2015Nothing published for this version
-
0.2.119 Mar 2015Nothing published for this version
-
0.2.004 Mar 2015Nothing published for this version
-
0.1.104 Feb 2015Nothing published for this version