Example #1
0
def test_extra_context(assert_logged):
    logger_ = KvLoggerAdapter.get_logger(extra={'extrawurst': True, })
    logger_.info('ExtraInfoEvent', log='value')

    assert_logged(logging.INFO, 'extrawurst=True   log=value')
Example #2
0
def logger():
    return KvLoggerAdapter.get_logger()