539c6e1bd4b1ba4be5798fe0c42527caf74642ec.svn-base 566 B

1234567891011121314151617181920212223
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Diagnostics;
  4. using System.Linq;
  5. using System.Web;
  6. namespace iBemsDataService.Util
  7. {
  8. public class Logger
  9. {
  10. private static Boolean IS_DEBUG = false;
  11. private static String debugPath = "e:\\monitoring.txt";
  12. public static void debug()
  13. {
  14. if (IS_DEBUG)
  15. {
  16. var listener = new TextWriterTraceListener(debugPath);
  17. Trace.Listeners.Add(listener);
  18. Trace.AutoFlush = true;
  19. }
  20. }
  21. }
  22. }