Example Configurations"

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "",
  echo = FALSE
)
library(lgr)

minimal

cfg <- system.file("configs/minimal.yaml", package = "lgr")
cat(readLines(cfg), sep = "\n")
print(lgr::lgr$config(cfg))
lgr$info("test")

recommended

cfg <- system.file("configs/recommended.yaml", package = "lgr")
cat(readLines(cfg), sep = "\n")
print(lgr::lgr$config(cfg))
lgr$trace("trace messages get ignored by console appender")
lgr$info("test")

show_log()


Try the lgr package in your browser

Any scripts or data that you put into this service are public.

lgr documentation built on Sept. 6, 2022, 1:05 a.m.