

def _configure_logging(kwargs, extract=True):
    'Requests the logging manager to configure logging.\n\n    :param extract:\n\n        If naming data should be extracted from the trajectory\n\n    '
    try:
        logging_manager = kwargs['logging_manager']
        if extract:
            logging_manager.extract_replacements(kwargs['traj'])
        logging_manager.make_logging_handlers_and_tools(multiproc=True)
    except Exception as exc:
        sys.stderr.write(('Could not configure logging system because of: %s' % repr(exc)))
        traceback.print_exc()

dataset/ETHPy150Open SmokinCaterpillar/pypet/pypet/environment.py _configure_logging/original