I am starting to write my first channel plugin and it is partially working, and its been a real struggle up to this point. I've gotten a lot of good tips and ideas from looking at other plugins, but what I can't see from them is how they debug their issues. Along the way I have been Log
ing to check my variables, but the log doesn't seem consistent. There are 6 logs which all look like they have varied information. I don't know which log is which, and even tail
ing some logs don't seem to update.
plex@plex:~/Library/Application Support/Plex Media Server/Logs/PMS Plugin Logs$ ls -ahl com.plexapp.plugins.nowplaying*
-rw-r--r-- 1 plex plex 11K Aug 7 09:56 com.plexapp.plugins.nowplaying.log
-rw-r--r-- 1 plex plex 8.2K Aug 7 09:54 com.plexapp.plugins.nowplaying.log.1
-rw-r--r-- 1 plex plex 27K Aug 7 09:49 com.plexapp.plugins.nowplaying.log.2
-rw-r--r-- 1 plex plex 9.6K Aug 7 09:36 com.plexapp.plugins.nowplaying.log.3
-rw-r--r-- 1 plex plex 18K Aug 7 09:36 com.plexapp.plugins.nowplaying.log.4
-rw-r--r-- 1 plex plex 37K Aug 7 09:32 com.plexapp.plugins.nowplaying.log.5
I read in another forum post not to use the PlexWeb client when testing the plugins because of caching in the browser, but even testing on my iPad doesn't seem very consistent. I guess my real issue for me is getting valuable info from the logs. Is the Plex server caching the plugins themselves? I have noticed that I make a few small changes and everything seems good then all of a sudden it stops working again and I try to debug it.
I have read the pdf "docs" and didn't see anything valuable for me along the lines of debugging.
Thanks for your input!!