Skip to content

Commit

Permalink
Wrapper around logger::log_shiny_input_changes
Browse files Browse the repository at this point in the history
So other Rapportek do not have to depend on logger package
  • Loading branch information
arnfinn committed Nov 25, 2024
1 parent 063a8af commit 6519cf0
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export(listStagingData)
export(loadRegData)
export(loadStagingData)
export(logFormat)
export(logShinyInputChanges)
export(logTimeFrame)
export(loggerSetup)
export(makeAutoReportTab)
Expand Down
10 changes: 10 additions & 0 deletions R/appLog.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,13 @@ loggerSetup <- function(
logger::log_errors()
}
}

#' Wrapper around logger::log_shiny_input_changes
#'
#' @param input passed from Shiny's server
#'
#' @export
#'
logShinyInputChanges <- function(input) {
logger::log_shiny_input_changes(input)

Check warning on line 47 in R/appLog.R

View check run for this annotation

Codecov / codecov/patch

R/appLog.R#L47

Added line #L47 was not covered by tests
}
14 changes: 14 additions & 0 deletions man/logShinyInputChanges.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6519cf0

Please sign in to comment.