lgr: A Fully Featured Logging Framework

A flexible, light-weight logging framework based on 'R6' classes. It supports hierarchical loggers, structured logging, output to plaintext, 'JSON', (rotating) files, and memory buffers. Additional appenders for 'Elasticsearch', 'Dynatrace', databases, email and push notifications, and more are available in the 'lgrExtra' package.

Version: 0.5.2
Depends: R (≥ 3.2.0)
Imports: R6 (≥ 2.4.0)
Suggests: cli, covr, crayon, data.table, desc, future, future.apply, glue, jsonlite, knitr, rmarkdown, rotor (≥ 0.3.5), rprojroot, testthat, tibble, tools, utils, whoami, yaml
Published: 2026-01-30
DOI: 10.32614/CRAN.package.lgr
Author: Stefan Fleck ORCID iD [aut, cre]
Maintainer: Stefan Fleck <stefan.b.fleck at gmail.com>
BugReports: https://github.com/s-fleck/lgr/issues/
License: MIT + file LICENSE
URL: https://s-fleck.github.io/lgr/
NeedsCompilation: no
Materials: README, NEWS
CRAN checks: lgr results [issues need fixing before 2026-02-14]

Documentation:

Reference manual: lgr.html , lgr.pdf
Vignettes: lgr (source, R code)

Downloads:

Package source: lgr_0.5.2.tar.gz
Windows binaries: r-devel: lgr_0.5.0.zip, r-release: lgr_0.5.0.zip, r-oldrel: lgr_0.5.0.zip
macOS binaries: r-release (arm64): lgr_0.5.0.tgz, r-oldrel (arm64): lgr_0.5.0.tgz, r-release (x86_64): lgr_0.5.0.tgz, r-oldrel (x86_64): lgr_0.5.0.tgz
Old sources: lgr archive

Reverse dependencies:

Reverse imports: bbotk, biodb, cpi, fscache, lgrExtra, miesmuschel, mlr3, mlr3batchmark, mlr3fda, mlr3fselect, mlr3hyperband, mlr3inferr, mlr3mbo, mlr3oml, mlr3pipelines, mlr3spatial, mlr3superlearner, mlr3torch, mlr3tuning, pipeflow, rappsflyer, rsparse, RSQL, rush, rvkstat, s3fs, sched, SIAMCAT, solitude, spFSR, text2vec
Reverse suggests: biodbChebi, DoubleML, log4r, mcboost, mlr3db, mlr3fairness, mlr3filters, mlr3learners, mlr3resampling, mlr3spatiotempcv, mlr3viz, mlrintermbo, RestRserve, sqlq, tryCatchLog, xplainfi

Linking:

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