def _log_exc_info(exc_info=None, level=logging.ERROR, aditional_lines=None):
    exception, value, tb = exc_info or sys.exc_info()
    exception_logger = _get_logger('exception', 'EXCEPTION_LOG_FILE')
    # find innermost call
    inner = tb
    while inner.tb_next:
        inner = inner.tb_next
    lineno = inner.tb_lineno
    module_name = inner.tb_frame.f_globals.get('__name__', '<unknown>')
    exception_logger.log(level, '%-20s %s:%s %s' % (
        exception.__name__,
        module_name,
        lineno,
        exception_str(value),
    ))

    lines = traceback.format_exception(exception, value, tb)
    if aditional_lines:
        lines = aditional_lines + lines
    traceback_logger = _get_logger('traceback', 'TRACEBACK_LOG_FILE')
    traceback_logger.log(level, '\n'.join([smart_str(l) for l in lines]))
Return entries for one or more folders.
dataset/ETHPy150Open isagalaev/django_errorlog/django_errorlog/models.py/_log_exc_info--crossover with--dataset/ETHPy150Open vinitkumar/googlecl/src/googlecl/docs/service.py/DocsServiceCL.get_folder