added an option for errors and messages, which use MessageBox to redirect output to Output Window with Logger.Log