# Mostly you should use these functions to display information to the user
context.log.display("I'm doing something")# Use this for every normal message ([*] I'm doing something)
context.log.success("I'm doing something")# Use this for when something succeeds ([+] I'm doing something)
context.log.fail("I'm doing something")# Use this for when something fails ([-] I'm doing something), for example a remote registry entry is missing which is needed to proceed
context.log.highlight("I'm doing something")# Use this for when something is important and should be highlighted, printing credentials for example
# These are for debugging purposes
context.log.info("I'm doing something")# This will only be displayed if the user has specified the --verbose flag, so add additional info that might be useful
context.log.debug("I'm doing something")# This will only be displayed if the user has specified the --debug flag, so add info that you would might need for debugging errors
# These are for more critical error handling
context.log.error("I'm doing something")# This will not be printed in the module context and should only be used for critical errors (e.g. a required python file is missing)
try:
raiseException("Exception that might occure")
exceptExceptionase:
context.log.exception(f"Exception occured: {e}")# This will display an exception traceback screen after an exception was raised and should only be used for critical errors