basic_bot.commons.log
Simple methods for logging messages to console with timestamps and "INFO", "DEBUG", "ERROR" prefixes.
These methods ensure that the last message is flushed to console.
bb_start
, which is used to run services in the background, will
redirect all stdout and stderr to a log file.
debug
Flush DEBUG message to console in development and test environments or if BB_LOG_DEBUG is True.
info
Flush INFO: message to console
error
Flush ERROR: message to console