improve logging plugin (refs #209)