# By default, logs are written to the console at the "INFO" threshold.
logger <- logger()
log_info(logger, "Located nearest gas station.")
log_warn(logger, "Ez-Gas sensor network is not available.")
log_debug(logger, "Debug messages are suppressed by default.")
Run the code above in your browser using DataLab