TwitterContext log trouble

Jun 29, 2011 at 7:22 AM

There is problem with log TextWriter in TwitterContext:

Pass log to TwitterExecute:

/// Assign the Log to the context /// public TextWriter Log { get { return TwitterExecute.Log; } set { TwitterExecute.Log = value; } }

Use log

private void WriteLog(string content, string currentMethod)
        {

            if (log != null)
            {
                log.Flush();
                log.WriteLine("--Log Starts Here--");
                log.WriteLine("Query:" + content);
                log.WriteLine("Method:" + currentMethod);
                log.WriteLine("--Log Ends Here--");
                log.Close();
            }
        }
I can't use TextWriter after close.
Coordinator
Jun 29, 2011 at 1:27 PM

Hi chernikov,

Yes, I see the problem exactly.  Thanks for letting me know.

Joe

Coordinator
Jun 29, 2011 at 1:28 PM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.