creating logfile c#
can anyone help me in creating a 开发者_高级运维"logfile" to write all the exceptions that occur in C#
Apart from the already suggested frameworks, there is also built-in tracing support in the .NET Framework.
http://logging.apache.org/log4net is the standard tool in my experience.
Instead of writing your own logging framework, you can use one of the following:
Enterprise Library Logging Application Block
Nlog
log4net
You can use a logging framework like log4net
For logging only exceptions take a look at elmah for other logging look at log4net
精彩评论