The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

log4r: A Fast and Lightweight Logging System for R, Based on 'log4j'

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.

Version: 0.5.0
Imports: cli, lifecycle, rlang
Suggests: futile.logger, httr, jsonlite, knitr, lgr, logger, logging, microbenchmark, rlog, rmarkdown, rsyslog, testthat (≥ 3.0.0), webfakes
Published: 2026-08-04
DOI: 10.32614/CRAN.package.log4r
Author: John Myles White [aut, cph], Kenton White [ctb], Kirill Müller [ctb], Aaron Jacobs [aut], Posit Software, PBC ROR ID [cph, fnd], Hadley Wickham ORCID iD [cre]
Maintainer: Hadley Wickham <hadley at posit.co>
BugReports: https://github.com/r-lib/log4r/issues
License: Artistic-2.0
URL: https://github.com/r-lib/log4r, https://log4r.r-lib.org
NeedsCompilation: yes
Materials: README, NEWS
CRAN checks: log4r results

Documentation:

Reference manual: log4r.html , log4r.pdf
Vignettes: Logging Beyond Local Files (source, R code)
Logging Performance (source, R code)
Structured Logging (source, R code)

Downloads:

Package source: log4r_0.5.0.tar.gz
Windows binaries: r-devel: not available, r-release: log4r_0.5.0.zip, r-oldrel: log4r_0.5.0.zip
macOS binaries: r-release (arm64): log4r_0.5.0.tgz, r-oldrel (arm64): log4r_0.5.0.tgz, r-release (x86_64): log4r_0.5.0.tgz, r-oldrel (x86_64): log4r_0.5.0.tgz
Old sources: log4r archive

Reverse dependencies:

Reverse imports: metaseqR2
Reverse suggests: AutoMLR, ProjectTemplate
Reverse enhances: logger

Linking:

Please use the canonical form https://CRAN.R-project.org/package=log4r to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.