Add logging to application. Add proper xml settings. Write to txt file. Consider to use profiles like "develop", "production".