except Exception as e:
use_file_logger = False
logger.warning(
"Unable to setup Poseidon logger because: {0}".format(str(e)))
if use_file_logger:
// set the poseidon logger to log to file
After Change
// define a Handler which writes INFO messages or higher to the sys.stderr
console = logging.StreamHandler()
console.setLevel(logging.INFO)
// set a format which is simpler for console use
formatter = logging.Formatter("[%(levelname)s] %(name)s - %(message)s")
// tell the handler to use this format
console.setFormatter(formatter)