public static void Close() { if (writer != null) writer.Close(); writer = null; }
public static void Close() { if (writer != null) { writer.Close(); } writer = null; }
public static void Initialize(string logName, InternalTraceLevel level) { if (!initialized) { Level = level; if (writer == null && Level > InternalTraceLevel.Off) { writer = new InternalTraceWriter(logName); writer.WriteLine("InternalTrace: Initializing at level " + Level.ToString()); } initialized = true; } }