def log_mapping(conf:str):
    """
    Split str of log format into a dict
    Example : date:application_date,message:application_message is split in : 
    {'date':'application_date','message':'application_message'}
    """
    mapping = dict()
    for i in conf.split(','):
        mapping[i.split(':')[0]] = i.split(':')[1]
    return mapping