Do not foreach through installedpackages if no installed packages exist.
Add support for <logging><custom_php_logging_command>.
Minor optimizations and some error checking.
Code cleanup and a few minor optimizations.
Do not require a <logtab> field. The log viewer will fall back to the package's name as defined in config.xml if needed.
Add dynamic package logging. I'm new to PHP integration with actual HTML, so that in particular could likely be optimized.