-
Notifications
You must be signed in to change notification settings - Fork 45
Log Messages
Marcus Ottosson edited this page Apr 23, 2015
·
4 revisions
Provide users with information about what happens during the processing of a plug-in.
Logging is visualised by it's 5 levels of severity.
- Debug
- Info
- Warning
- Error
- Critical
Each produced via it's corresponding call to self.log
within a plug-in.
class MyValidator(...):
...
def process_instance(...):
self.log.debug("e=mc^2")
self.log.info("Processing instance..")
self.log.warning("Something may be wrong..")
self.log.error("Something's *definitely* wrong!")
self.log.critical("Call the president!")
Each level is then represented by its unique color, starting from Blue moving into Red.
A log message may be short or span multiple lines. Only the first line is visualised unless an item is expanded. Once expanded, similar rules apply to parsing as the parsing of docstring (See Plug-in Documentation) for more information.
Short version
Expanded version