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 is NULL).


A character string. The name of the event.


A character string. A type of the event. Default is "EVENT".


A character string. A status of the event. Default is "FIRED".


A list of additional named event-specific parameters. Default is NULL.


An integer. The number of the event. Default is NULL which will be replaced by the current value of the counter returned by the internal getter function get_event_counter.

See also

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) } ) }