This project has moved and is read-only. For the latest updates, please go here.

TwitterContext log trouble

Jun 29, 2011 at 8: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.WriteLine("--Log Starts Here--");
                log.WriteLine("Query:" + content);
                log.WriteLine("Method:" + currentMethod);
                log.WriteLine("--Log Ends Here--");
I can't use TextWriter after close.
Jun 29, 2011 at 2:27 PM

Hi chernikov,

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


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