porcelain_logger | R Documentation |
Create a json-emitting logger, using the 'lgr' package.
porcelain_logger(log_level = "info", name = NULL, path = NULL)
log_level |
The level of detail to log to. See
|
name |
The name of the logger. By default we use one derived from the package name, though this may not always be accurate. |
path |
Optionally, the path to log into. If not given then we log to the console. |
A "Logger" object (see lgr::Logger)
logger <- porcelain::porcelain_logger(name = "example")
logger$log("info", "hello")
logger$log("trace", "silent")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.