g-sherman / Qgis-Plugin-Builder

Plugin generator for creating QGIS Python plugins (QGIS 3 version is now in master)
83 stars 62 forks source link

Add a logging system by default #45

Open Gustry opened 8 years ago

Gustry commented 8 years ago

The plugin builder should ship a logging system by default with a few lines how to use it for instance.

InaSAFE is using the logging package to deal with QGIS, a remote server ... https://github.com/inasafe/inasafe/blob/develop/safe/common/custom_logging.py

g-sherman commented 8 years ago

Python logging is trivial to implement---we can add a "logger" object with comments on how to enable it.

Gustry commented 8 years ago

Yes, not a lot of people are using the QgsMessageLog API.