fh = logging.handlers.RotatingFileHandler(
"/var/log/poseidon/poseidon.log")
fh.setFormatter(p_formatter)
poseidon_logger.addHandler(fh)
except Exception as e:
logger.warning(
"Unable to setup Poseidon logger because: {0}".format(str(e)))
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)