formatter = logging.Formatter(
    '%(asctime)s - %(name)s - %(levelname)s - %(message)s')
handler_console.setFormatter(formatter)
logger.addHandler(handler_console)
Python logging module: duplicated console output [IPython Notebook/Qtconsole]