Skip to content

Commit

Permalink
Shiny logger (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
arnfinn authored Nov 25, 2024
1 parent 063a8af commit 2fc560c
Show file tree
Hide file tree
Showing 4 changed files with 26 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)
}
1 change: 1 addition & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ reference:
Handle logging
contents:
- loggerSetup
- logShinyInputChanges
- logger
- sanitizeLog

Expand Down
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 2fc560c

Please sign in to comment.