catch_base_log: Catch the log header

View source: R/utils.R

catch_base_logR Documentation

Catch the log header

Description

Catch the log header

Usage

catch_base_log(
  level,
  namespace,
  .topcall = sys.call(-1),
  .topenv = parent.frame()
)

Arguments

level

see log_levels

namespace

string

Value

string

Examples

## Not run: 
catch_base_log(INFO, NA_character_)
logger <- layout_glue_generator(format = '{node}/{pid}/{namespace}/{fn} {time} {level}: {msg}')
log_layout(logger)
catch_base_log(INFO, NA_character_)
fun <- function() catch_base_log(INFO, NA_character_)
fun()
catch_base_log(INFO, NA_character_, .topcall = call('funLONG'))

## End(Not run)

daroczig/logger documentation built on March 8, 2024, 6:49 p.m.