public static void Close()
        {
            if (writer != null)
                writer.Close();

            writer = null;
        }
示例#2
0
        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;
			}
        }
示例#4
0
        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;
            }
        }