def build_logger(<EOL>name=os.getenv(<EOL>"<STR_LIT>",<EOL>"<STR_LIT>"),<EOL>config="<STR_LIT>",<EOL>log_level=logging.INFO,<EOL>log_config_path="<STR_LIT>".format(<EOL>os.getenv(<EOL>"<STR_LIT>",<EOL>os.path.dirname(os.path.realpath(__file__))))):
use_config = ("<STR_LIT>").format(<EOL>"<STR_LIT:{}>".format(<EOL>config))<EOL>if not os.path.exists(use_config):<EOL><INDENT>use_config = log_config_path<EOL>if not os.path.exists(use_config):<EOL><INDENT>use_config = ("<STR_LIT>").format(<EOL>"<STR_LIT>")<EOL><DEDENT><DEDENT>setup_logging(<EOL>default_level=log_level,<EOL>default_path=use_config)<EOL>return logging.getLogger(name)<EOL>
build_logger

    :param name: name that shows in the logger
    :param config: name of the config file
    :param log_level: level to log
    :param log_config_path: path to log config file