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 |
| 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 |
| Reference manual: | log4r.html , log4r.pdf |
| Vignettes: |
Logging Beyond Local Files (source, R code) Logging Performance (source, R code) Structured Logging (source, R code) |
| Package source: | log4r_0.5.0.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: not available |
| macOS binaries: | r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available |
| Old sources: | log4r archive |
| Reverse imports: | metaseqR2 |
| Reverse suggests: | AutoMLR, ProjectTemplate |
| Reverse enhances: | logger |
Please use the canonical form https://CRAN.R-project.org/package=log4r to link to this page.