expyfun.set_log_level#

expyfun.set_log_level(verbose=None, return_old_level=False)[source]#

Convenience function for setting the logging level

Parameters:
verbosebool, str, int, or None

The verbosity of messages to print. If a str, it can be either DEBUG, INFO, WARNING, ERROR, or CRITICAL. Note that these are for convenience and are equivalent to passing in logging.DEBUG, etc. For bool, True is the same as ‘INFO’, False is the same as ‘WARNING’. If None, the environment variable EXPYFUN_LOGGING_LEVEL is read, and if it doesn’t exist, defaults to INFO.

return_old_levelbool

If True, return the old verbosity level.

Examples using expyfun.set_log_level#

Run a simple experiment

Run a simple experiment