moonbase.log - Protovision/moonbase GitHub Wiki
The following functions are provided from moonbase.log:
-
moonbase.log.critical
-
moonbase.log.error
-
moonbase.log.warn
-
moonbase.log.info
-
moonbase.log.debug
-
moonbase.log.verbose
Each moonbase.log function accepts a string as it's argument and prints the string prepended with it's logging level name. The function may or may not print depending on the current logging level set from the command-line.
Each logging level enables a new logging priority as well as all the ones before it. For example, if the user set the logging level to 3: then moonbase.log.warn, moonbase.log.error, and moonbase.log.critical messages will be visible. Setting it to 4 will enable all the logging priorities that 3 provides as well as moonbase.log.info.