Modified log plugin to give more user control to what gets logged