Inject Values into Logging Calls
with_log_level(level, code, logger = lgr::lgr) with_log_value(values, code, logger = lgr::lgr)
| level | 
 | 
| code | Any R code | 
| logger | a Logger or the name of one (see  | 
| values | a named  | 
These functions abuses lgr's filter mechanic to modify LogEvents in-place before they passed on the Appenders. Use with care as they can produce hard to reason about code.
whatever code would return
with_log_level("warn", {
  lgr$info("More important than it seems")
  lgr$fatal("Really not so bad")
})
with_log_value(
  list(msg = "overriden msg"),  {
  lgr$info("bar")
  lgr$fatal("FOO")
})Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.