Skip to content
Marcus Ottosson edited this page Apr 23, 2015 · 4 revisions

Provide users with information about what happens during the processing of a plug-in.




Introduction

Logging is visualised by it's 5 levels of severity.

  1. Debug
  2. Info
  3. Warning
  4. Error
  5. 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.




Details

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

image

Expanded version

image




Example

image

Clone this wiki locally