log_value: Logging value

Description Usage Arguments See Also Examples

View source: R/log_value.R

Description

log_value logs value of an evaluated function into log entry body and uses deparsed function call as the event name.

Usage

1
log_value(..., type = "VALUE", status = "FIRED", params = NULL)

Arguments

...

A function call that is evaluated, the returned value is coerced into character string, and pasted into log entry body. Deparsed function call is used as the event name in log entry header.

type

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

status

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

params

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

See Also

Other logging events functions: log_event, log_message, log_output, log_started, log_test

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
if (interactive()) {
  set_logging()
  shiny::shinyApp(
    ui = shiny::fluidPage(log_init()),
    server = function(input, output) {
      set_logging_session()
      log_value(NROW(mtcars))
    }
  )

}

shinyEventLogger documentation built on May 1, 2019, 9:26 p.m.