This is likely more of python question than an Indigo one.. I have an set of functions in a library, and would like to properly setup the code so that the log messages output the specific library file.. So essentially log messages in the Indigo log window would be as follows:
- PlugIn Log Sample plugin message
- Plugin Log Another plugin message
- Plugin Library Log A message from the library
- Plugin Library Log Another message from the library
Additionally I was hoping to have a 'toggleDebugging' menu item, which is pretty standard for Indigo Plugins. The toggle would also toggle any library logging to the appropriate debug level
Any help on how to properly lay this out in Python/Indigo would be helpful