Esempio n. 1
0
 public static void SetDebugStyle(DebugStyleValues style)
 {
     debugStyle = style;
     if (style == DebugStyleValues.FileReporting)
     {
         SetDebugStyleFile();
     }
 }
Esempio n. 2
0
 private static void SetDebugStyleFile()
 {
     if (!logFileOpen)
     {
         try
         {
             isLogging = true;
             logFileStream = new FileStream(logFileName, FileMode.Append, FileAccess.Write, FileShare.None);
             logger = new StreamWriter(logFileStream);
             logFileOpen = true;
             logger.AutoFlush = true;
         }
         catch 
         {
             debugStyle = DebugStyleValues.NotDebugging;
         }
     }
     debugStyle = DebugStyleValues.FileReporting;
 }
Esempio n. 3
0
 private static void SetDebugStyleFile()
 {
     if (!logFileOpen)
     {
         try
         {
             isLogging        = true;
             logFileStream    = new FileStream(logFileName, FileMode.Append, FileAccess.Write, FileShare.None);
             logger           = new StreamWriter(logFileStream);
             logFileOpen      = true;
             logger.AutoFlush = true;
         }
         catch
         {
             debugStyle = DebugStyleValues.NotDebugging;
         }
     }
     debugStyle = DebugStyleValues.FileReporting;
 }
Esempio n. 4
0
 public static void SetDebugStyleConsole()
 {
     isLogging = true;
     debugStyle = DebugStyleValues.ConsoleReporting;
 }
Esempio n. 5
0
 public static void SetDebugStyle(DebugStyleValues style)
 {
     debugStyle = style;
     if(style == DebugStyleValues.FileReporting)
         SetDebugStyleFile();
 }
Esempio n. 6
0
 public static void SetDebugStyleConsole()
 {
     isLogging  = true;
     debugStyle = DebugStyleValues.ConsoleReporting;
 }