def job_with_logging():
    logger = logging.getLogger('jobcontrol.utils.testing.job_with_logging')
    logger.setLevel(logging.DEBUG)
    logger.debug('This is a debug message')
    logger.info('This is an info message')
    logger.warning('This is a warning message')
    logger.error('This is an error message')
    logger.critical('This is a critical message')
    try:
        raise ValueError('Foobar')
    except:
        logger.exception('This is an exception message')
def job_with_logging():
    logger = logging.getLogger('jobcontrol.utils.testing.job_with_logging')
    logger.setLevel(logging.DEBUG)
    logger.debug('This is a debug message')
    logger.info('This is an info message')
    logger.warning('This is a warning message')
    logger.error('This is an error message')
    logger.critical('This is a critical message')
    try:
        raise ValueError('Foobar')
    except:
        logger.exception('This is an exception message')