def set_log_level(verbose, match=None, return_old=False):
 if isinstance(verbose, bool):
  verbose = ('info' if verbose else 'warning')
 if isinstance(verbose, string_types):
  verbose = verbose.lower()
  if (verbose not in logging_types):
   raise ValueError(('Invalid argument "%s"' % verbose))
  verbose = logging_types[verbose]
 else:
  raise TypeError('verbose must be a bool or string')
 logger = logging.getLogger('vispy')
 old_verbose = logger.level
 old_match = _lh._vispy_set_match(match)
 logger.setLevel(verbose)
 if (verbose <= logging.DEBUG):
  _lf._vispy_set_prepend(True)
 else:
  _lf._vispy_set_prepend(False)
 out = None
 if return_old:
  out = (old_verbose, old_match)
 return out

def set_log_level ( verbose , match = None , return_old = False ) : if isinstance ( verbose , bool ) : verbose = ( 'info' if verbose else 'warning' ) if isinstance ( verbose , string_types ) : verbose = verbose . lower ( ) if ( verbose not in logging_types ) : raise ValueError ( ( 'Invalid argument "%s"' % verbose ) ) verbose = logging_types [ verbose ] else : raise TypeError ( 'verbose must be a bool or string' ) logger = logging . getLogger ( 'vispy' ) old_verbose = logger . level old_match = _lh . _vispy_set_match ( match ) logger . setLevel ( verbose ) if ( verbose <= logging . DEBUG ) : _lf . _vispy_set_prepend ( True ) else : _lf . _vispy_set_prepend ( False ) out = None if return_old : out = ( old_verbose , old_match ) return out
use this method to set log level to something other than the default debug .