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