The LoggerNull class overwrites the functions of the Logger so no logging is produced.
Errors and warnings are still produced.
Value
A new instance of the LoggerNull R6 class.
Super class
Logger -> LoggerNull
Methods
Inherited methods
LoggerNull$finalize_db_entry()
Matches the signature of Logger$finalize_db_entry(), but does nothing.
Examples
logger <- LoggerNull$new()
logger$log_info("This message will not print!")
logger$log_to_db(message = "This message will no be written in database!")
try(logger$log_warn("This is a warning!"))
#> Warning: 2026-10-31 00:32:07.495 - rstudio - WARNING - This is a warning!
try(logger$log_error("This is an error!"))
#> Error : 2026-10-31 00:32:07.496 - rstudio - ERROR - This is an error!
