def get_logger_config(log_dir='<STR_LIT>',<EOL>logging_env='<STR_LIT>',<EOL>edx_filename='<STR_LIT>',<EOL>dev_env=False,<EOL>debug=False,<EOL>local_loglevel='<STR_LIT>',<EOL>service_variant='<STR_LIT>'):
<EOL>if local_loglevel not in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>local_loglevel = '<STR_LIT>'<EOL><DEDENT>hostname = platform.node().split('<STR_LIT:.>')[<NUM_LIT:0>]<EOL>syslog_format = (<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>'<STR_LIT>'<EOL>).format(<EOL>service_variant=service_variant,<EOL>logging_env=logging_env, hostname=hostname<EOL>)<EOL>if debug:<EOL><INDENT>handlers = ['<STR_LIT>']<EOL><DEDENT>else:<EOL><INDENT>handlers = ['<STR_LIT>']<EOL><DEDENT>logger_config = {<EOL>'<STR_LIT:version>': <NUM_LIT:1>,<EOL>'<STR_LIT>': False,<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': '<STR_LIT>'<EOL>'<STR_LIT>',<EOL>},<EOL>'<STR_LIT>': {'<STR_LIT>': syslog_format},<EOL>'<STR_LIT>': {'<STR_LIT>': '<STR_LIT>'},<EOL>},<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': '<STR_LIT>' if debug else '<STR_LIT>',<EOL>'<STR_LIT:class>': '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': sys.stdout,<EOL>},<EOL>},<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': handlers,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': True<EOL>},<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': handlers,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': False<EOL>},<EOL>}<EOL>}<EOL>if dev_env:<EOL><INDENT>edx_file_loc = os.path.join(log_dir, edx_filename)<EOL>logger_config['<STR_LIT>'].update({<EOL>'<STR_LIT>': {<EOL>'<STR_LIT:class>': '<STR_LIT>',<EOL>'<STR_LIT>': local_loglevel,<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT:filename>': edx_file_loc,<EOL>'<STR_LIT>': <NUM_LIT> * <NUM_LIT> * <NUM_LIT:2>,<EOL>'<STR_LIT>': <NUM_LIT:5>,<EOL>},<EOL>})<EOL><DEDENT>else:<EOL><INDENT>logger_config['<STR_LIT>'].update({<EOL>'<STR_LIT>': {<EOL>'<STR_LIT>': local_loglevel,<EOL>'<STR_LIT:class>': '<STR_LIT>',<EOL>'<STR_LIT:address>': '<STR_LIT>' if sys.platform == '<STR_LIT>' else '<STR_LIT>',<EOL>'<STR_LIT>': '<STR_LIT>',<EOL>'<STR_LIT>': SysLogHandler.LOG_LOCAL0,<EOL>},<EOL>})<EOL><DEDENT>return logger_config<EOL>
Returns a dictionary containing logging configuration.

If dev_env is True, logging will not be done via local rsyslogd.
Instead, application logs will be dropped into log_dir. 'edx_filename'
is ignored unless dev_env is True.