python/dna/logging.py
def logger(name=__name__, output=None, uuid=False, timestamp=False):
    ''' Configure and return a new logger for hivy modules '''
    processors = []
    if output == 'json':
        processors.append(structlog.processors.JSONRenderer())

    if uuid:
        processors.append(add_unique_id)
    if uuid:
        processors.append(add_timestamp)
    return structlog.wrap_logger(
        logbook.Logger(name),
        processors=processors
    )
def logger(name=__name__, output=None, uuid=False, timestamp=False):
    ''' Configure and return a new logger for hivy modules '''
    processors = []
    if output == 'json':
        processors.append(structlog.processors.JSONRenderer())

    if uuid:
        processors.append(add_unique_id)
    if uuid:
        processors.append(add_timestamp)
    return structlog.wrap_logger(
        logbook.Logger(name),
        processors=processors
    )
def logger ( name = __name__ , output = None , uuid = False , timestamp = False ) : processors = [ ] if output == 'json' : processors . append ( structlog . processors . JSONRenderer ( ) ) if uuid : processors . append ( add_unique_id ) if uuid : processors . append ( add_timestamp ) return structlog . wrap_logger ( logbook . Logger ( name ) , processors = processors )
Configure and return a new logger for hivy modules
Configure and return a new logger for hivy modules