On Dec 10, 11:06 am, christ...@gmail.com wrote:
I´m not en expert but this is what I do....
eventlog it good, but for some reason I like th old writing to a
logfile, just a plain textfile, but before that is done, check if u
could use ms excel to proces it... format date/time correct, could be
useful if the file becomes big...
another solution is adding it to a database but I still like the .txt
approach, easy to mail, easy to process...
open a streamwriter and... write @"c:\slask.txt" ;)
I agree that using plaintext log files is good - but using a framework
like log4net gives a much more versatile solution while still
producing a plaintext output (as one option). It will handle rollover,
threading etc for you - manually opening StreamWriters will force you
to implement all that yourself.
Jon