LoggerNull | R Documentation |
The LoggerNull
class overwrites the functions of the Logger
so no logging is produced.
Errors and warnings are still produced.
A new instance of the LoggerNull
R6 class.
SCDB::Logger
-> LoggerNull
new()
Create a new LoggerNull
object
LoggerNull$new(...)
...
Captures arguments given, but does nothing
log_to_db()
Matches the signature of Logger$log_to_db()
, but does nothing.
LoggerNull$log_to_db(...)
...
Captures arguments given, but does nothing
finalize_db_entry()
Matches the signature of Logger$finalize_db_entry()
, but does nothing.
LoggerNull$finalize_db_entry(...)
...
Captures arguments given, but does nothing
clone()
The objects of this class are cloneable with this method.
LoggerNull$clone(deep = FALSE)
deep
Whether to make a deep clone.
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!"))
try(logger$log_error("This is an error!"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.