public static void TraceFile(int iType, string str) { if (LogSystem.mStreamFileWtiter == null) { return; } try { string value = LogSystem.StringBuilderCurrTime(iType); LogSystem.mStreamFileWtiter.Write(value); LogSystem.mStreamFileWtiter.WriteLine(str); LogSystem.mStreamFileWtiter.Flush(); } catch (IOException) { } catch (Exception ex) { LogSystem.LogError(new object[] { ex.ToString() }); } try { if (LogSystem.miLogCount++ > LogSystem.miLogCountMax) { if (LogSystem.mfstream != null) { LogSystem.mfstream.Seek(0L, SeekOrigin.Begin); } LogSystem.miLogCount = 0; } } catch (Exception ex2) { LogSystem.LogError(new object[] { ex2.ToString() }); } }