ashwin
ashwin

Reputation: 11

creating logfile c#

can anyone help me in creating a "logfile" to write all the exceptions that occur in C#

Upvotes: 1

Views: 643

Answers (5)

Fredrik Mörk
Fredrik Mörk

Reputation: 158379

Apart from the already suggested frameworks, there is also built-in tracing support in the .NET Framework.

Upvotes: 3

šljaker
šljaker

Reputation: 7374

Instead of writing your own logging framework, you can use one of the following:

Enterprise Library Logging Application Block

Nlog

log4net

Upvotes: 2

David Glenn
David Glenn

Reputation: 24532

For logging only exceptions take a look at elmah for other logging look at log4net

Upvotes: 1

user243357
user243357

Reputation: 181

http://logging.apache.org/log4net is the standard tool in my experience.

Upvotes: 2

Scoregraphic
Scoregraphic

Reputation: 7200

You can use a logging framework like log4net

Upvotes: 1

Related Questions