====== API v2.4 Release Notes ====== This version of the API shipped with Indigo 7.5.0 - check the [[:API Version Chart]] to see what version of the API is available in which Indigo versions. * Added new methods to get the plugin list //''indigo.server.getPluginList()''// and check if a plugin instance is installed //''plugin.isInstalled()''//. * Added optional //''level''// argument to the //''indigo.server.log()''// method to specify the python logging level that will determine the Event Log window text color used. Possible values include: //''logging.INFO''// (black), //''logging.WARNING''// (orange), //''logging.ERROR''// (red). The default plugin instance logger will also now map //''self.logger.warn()''// to use an orange text color as well. Example usage: import logging indigo.server.log("info log message which will show in black text", level=logging.INFO) indigo.server.log("warning log message which will show in orange text", level=logging.WARNING) indigo.server.log("error log message which will show in red text", level=logging.ERROR) # Equivalent of above server API calls that instead use the plugin instances default logger instance: self.logger.info("info log message which will show in black text") self.logger.warn("warning log message which will show in orange text") self.logger.error("error log message which will show in red text")