'Set the log level for python Bokeh code.'

def py_log_level(self, default='none'):

    level = self._get_str('PY_LOG_LEVEL', default, 'debug')
    LEVELS = {'debug': logging.DEBUG, 'info': logging.INFO, 'warn': logging.WARNING, 'error': logging.ERROR, 'fatal': logging.CRITICAL, 'none': None}
    return LEVELS[level]
