All messages printed by the Hyperion Python routines use the built-in logging module. This means that it is possible to filter messages based on importance. Messages can have one of several levels:
Note that the CRITICAL level is unlikely to be used, since critical errors should raise Exceptions in practice.
It is possible to specify a threshold for logging messages. Messages which are less severe than this threshold will be ignored. The default threshold in Hyperion is 20 (INFO), indicating that all the above messages will be shown except DEBUG. Using 40 for example would cause only ERROR and CRITICAL messages to be shown.
If you want to filter different messages in different scripts, you can directly access the logger and set the level manually:
from hyperion.util.logger import logger
logger.setLevel(10)
If you want to always filter the same messages for all projects on a given computer, you can create a .hyperionrc file in your home directory, containing the following entries related to logging:
[logging]
color:yes
level:0