A Fast and Lightweight Logging System for R, Based on 'log4j'
Overview
Provides a fast, lightweight, object-oriented approach to logging based on the widely-emulated 'log4j' system and etymology. Loggers write messages to one or more destinations, such as the console, a file, or a remote server, using a format you control. Messages below the chosen severity threshold are discarded cheaply, so logging calls can be left in production code.
Install
Health
- OK13 OKNow
- OK7 OK2026-08-05
- ERROR11 OK, 2 ERROR2026-06-16
- OK12 OK2026-04-25
- NOTE13 OK, 1 NOTE2026-03-10
Documentation
- Help pages
- 10 (2 internal)includes a package overview page
- Examples that run
- 67%6 run in a plain check · 3 never run
- Exported functions with examples
- 100%
- Documented parameters
- 88%
- Return-value docs
- 100%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 88%
- Median days to close, 50 most recently updated closed issues
- 7
- Median days to close, 50 most recently updated closed PRs
- 1
Commits over time
10 development-tooling and community-health practices detected across 4 families in the upstream repository
Checks run against github.com/r-lib/log4r on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-09-04 · The repository has a site deploy workflow
pkgdown site last built 2026-08-04
This repository shows signs of AI coding tools.
- Claude Codefirst seen 2026-08-04Seen in the repository: .claudeNamed in .Rbuildignore: .claude
Dependencies
Installing log4r adds 3 packages (2 with compiled code, 1.5 MB of source tarballs). Heaviest: rlang 766 KB, cli 629 KB, lifecycle 105 KB.
Code & Tests
People & History
Previously maintained by Aaron Jacobs (0.3.0 to 0.4.4) and Kirill Müller (0.2).
Pick two releases to compare their code metrics.
- unarchivedReturned to CRAN2026-08-05
- 0.5.0Latest2026-08-04 · current release · diff ↗ ·
added 6 exports
log_at, log_debug, log_error, log_fatal, log_info, log_warn - archivedRemoved from CRAN2026-07-14issues were not corrected in time despite reminder
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- 0.4.42024-10-12 · diff ↗
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- 0.4.32022-11-28 · diff ↗
- RR 4.2.0 released · 2022-04-22
- 0.4.22021-11-04 · diff ↗
- 0.4.12021-10-28 · diff ↗
- 0.4.02021-10-26 · diff ↗ ·
added 6 exports
bare_log_layout, http_appender, json_log_layout, logfmt_log_layout, syslog_appender, tcp_appender - RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.3.22020-01-18 · diff ↗
Show 19 earlier eventsHide 19 earlier events
- 0.3.12019-09-04 · diff ↗
- 0.3.02019-06-21 · diff ↗ ·
added 5 exports
console_appender, default_log_layout, file_appender, logger, simple_log_layout - RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- 0.22014-09-29 · diff ↗ ·
removed 6 exports
logfile.logger, logfile<-.logger, level.logger, level<-.logger, logformat.logger, logformat<-.loggeradded 5 exports
as.loglevel, available.loglevels, is.loglevel, levellog, loglevel - RR 3.1.0 released · 2014-04-10
- RR 3.0.0 released · 2013-04-03
- RR 2.15.0 released · 2012-03-30
- 0.1-42012-03-01 · diff ↗
- RR 2.14.0 released · 2011-10-31
- 0.1-3
- 0.1-22011-05-17 · diff ↗
- RR 2.13.0 released · 2011-04-13
- RR 2.12.0 released · 2010-10-15
- 0.1-12010-09-25
- RR 2.11.0 released · 2010-04-22
Package metadata
- First published
- 2010-09-25
- Total releases
- 14 / 16 yrs
- License
- Artistic-2.0 OSI
- Download size
- 47 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("log4r")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.