Skip to content

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

def debug(message: str) -> None

Flush DEBUG message to console in development and test environments or if BB_LOG_DEBUG is True.

info

def info(message: str) -> None

Flush INFO: message to console

error

def error(message: str) -> None

Flush ERROR: message to console