Logger: Shiny Logger

Description Usage Arguments Value Examples

View source: R/logger.R

Description

Main function for generating a logger to use within Shiny applications

Usage

1
Logger(threshold = NULL, colors = log.colors)

Arguments

threshold

Level at which to cut logging: See log.levels

colors

Colors to use for logging, if the crayon package is available

Value

List of class type 'logging'

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
logger = Logger("INFO")
logger$error("Show error")
logger$warn("Show warning")
logger$info("Show info")
logger$debug("Show debug")
logger$trace("Show trace")
options("shiny.logLevel" = "TRACE")
logger$trace("Show trace")
set.threshold("WARN")
logger$info("Show info")
logger$warn("Show warning")

codymarquart/shinyLogger documentation built on March 5, 2020, 11:22 a.m.