Description Usage Arguments Details See Also Examples
With log_params
you can define a set of named parameters,
which are common for events from the same scope
(for example inside an observer).
These parameters will be added to event-specific parameters
and logged within the same log entry.
1 |
... |
a set of named objects (usually of type character, numeric, or date) to be logged as event parameters. |
The function takes all objects passed inside ...
argument,
evaluates them, and stores them in a new environment called
log_setting
which is assigned to the parent environment
from which the log_params
function was called.
Other setting up logging parameters functions: set_logging_session
,
set_logging
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | if (interactive()) {
set_logging()
shiny::shinyApp(
ui = shiny::fluidPage(log_init()),
server = function(input, output) {
set_logging_session()
observe({
log_params("observer" = "A")
log_event("Event A.1")
log_event("Event A.2")
})
observe({
log_params("observer" = "B")
log_event("Event B.1")
log_event("Event B.2")
})
}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.