Searching Me, Dreamy..
Saturday, December 31, 2011
Trace to Log File
private readonly FileStream _obj = new FileStream("log.txt", FileMode.OpenOrCreate);
At form Load use this
var objt = new TextWriterTraceListener(_obj);
Trace.Listeners.Add(objt);
Trace.AutoFlush = true;
No comments :
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments ( Atom )
No comments :
Post a Comment