Exemple #1
0
        public void WriteToLog(Object thingToLog)
        {
            // for each logger
            for (int i = 0; i < logList.Count; i++)
            {
                Logger current = (Logger)logList[i];

                // write to logger
                current.LogToFile(thingToLog);

                current.Flush(); // make sure the tags actually get written to hard drive.
            }
        }
Exemple #2
0
        public void WriteToLog(ArrayList thingsToLog)
        {
            System.Collections.IEnumerator myEnumerator = thingsToLog.GetEnumerator();
            // for each logger
            for (int i = 0; i < logList.Count; i++)
            {
                Logger current = (Logger)logList[i];

                // for each tag
                while (myEnumerator.MoveNext())
                {
                    // write MyTag to logger
                    current.LogToFile(myEnumerator.Current);
                }
                current.Flush(); // make sure the tags actually get written to hard drive.
            }
        }