"""owsloguru methods""" # from uuid import uuid4 from connectors.log import logger def get_ows_log(): """Returns an loguru logger with correlation_id in the record['extra'] field. Args: correlation_id (str): Correlation_id to pass to logs Returns: Loguru logger: A logger with a binding to pass the correlation_id """ # log = logger.patch( # lambda record: record.update( # correlation_id=record.get('extra').get('correlation_id'))) # log = logger.patch( # lambda record: record.update({'correlation_id':correlation_id})) return logger