kumar
kumar

Reputation: 221

How to include logging in NUnit

What would be an example of a default logger in NUnit to log the information?

Some documentation says Log4net is not supported now.

Upvotes: 2

Views: 3976

Answers (2)

You can add Common.Logging reference (with Log4net) and add ConsoleAppender in your configuration file. After configuring the appender, you will see logging information when running your unit tests.

Upvotes: 0

Jordão
Jordão

Reputation: 56457

You can use the normal .NET Trace or Debug classes to log messages that NUnit will later display.

Upvotes: 0

Related Questions