(level=logging.INFO)
Initialize logging only to console and database.
Initialize logging only to console and database.
Initialize logging only to console and database .
def init_console_logging(level=logging.INFO):
    """Initialize logging only to console and database."""
    logging.getLogger().setLevel(logging.DEBUG)
    init_logger("console", level)
    init_logger("database")
def init_console_logging ( level = logging . INFO ) : logging . getLogger ( ) . setLevel ( logging . DEBUG ) init_logger ( "console" , level ) init_logger ( "database" )