Description Usage Arguments Value Examples
joblogs
are data.tables
with custom print()
and summary()
methods.
as.joblog()
just adds a joblog
attribute to an appropriately formatted
data.table
. If you want to extract jobs from a normal log(file/data.frame
)
use scrape_joblog()
instead.
1 2 3 4 5 6 7 8 9 10 |
x, object |
any R object |
... |
ignored |
summary.joblog()
returns a joblog_summary
data.table
summary.joblog()
returns a joblog_summary
data.table
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | lg <- lgr::get_logger("test")$
set_propagate(FALSE)$
add_appender(lgr::AppenderBuffer$new(), "buffer")
lg$list_log(job_start("update-database"))
lg$list_log(job_finished())
lg$list_log(job_start("send-report"))
lg$list_log(job_failed("something went wrong this time"))
res <- scrape_joblog(lg$appenders$buffer$data)
print(res)
summary(res)
lg$config(NULL) # reset logger
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.