log_event
logs an event into R console, browser JavaScript console,
file, or database
depending on user's settings (see set_logging
).
log_event(..., name = NULL, type = "EVENT", status = "FIRED", params = NULL, event_counter = NULL)
... | Objects that are evaluated, coerced into character string,
collapsed and pasted into log entry body
(or header if |
---|---|
name | A character string. The name of the event. |
type | A character string. A type of the event.
Default is |
status | A character string. A status of the event.
Default is |
params | A list of additional named event-specific parameters.
Default is |
event_counter | An integer. The number of the event.
Default is |
set_logging
for setting event logging,
log_init
for initialize JavaScript logging in shiny app,
log_params
for setting scope-specific event parameters,
read_eventlog
for reading eventlog from a file or a database.
Other logging events functions: log_message
,
log_output
, log_started
,
log_test
, log_value
if (interactive()) { set_logging() shiny::shinyApp( ui = shiny::fluidPage(log_init()), server = function(input, output) { set_logging_session() log_event("Event 1") log_event("Event 2 body", name = "Event 2") log_event("Event 3", type = "NewTYPE") log_event("Event 4", status = "EXECUTED") log_event("Event 5", event_counter = 123) } ) }