def create_logger(name,<EOL>filename=None,<EOL>logging_level=logging.DEBUG):
logger = logging.getLogger(name)<EOL>formatter = logging.Formatter(('<STR_LIT>'<EOL>'<STR_LIT>'))<EOL>if filename:<EOL><INDENT>fh = logging.FileHandler(filename=filename)<EOL>fh.setFormatter(formatter)<EOL>logger.addHandler(fh)<EOL><DEDENT>ch = logging.StreamHandler()<EOL>ch.setFormatter(formatter)<EOL>logger.addHandler(ch)<EOL>logger.setLevel(logging_level)<EOL>return logger<EOL>
Create a logger object.