NUnit
Last updated
Last updated
This library provides an implementation of ILog that can be used in NUnit tests.
An instance of NUnitLog can log into different contexts of tests depending on the requirements.
GitHub repository:
NuGet package:
users should reference this module with the following command:
This type of context writes log events to the context of the test in which the log was created.
This type of context writes log events to the context which is retrieved from AsyncLocal static variable. It usually contains context of the current test, but in some cases (which involve launching something on a different thread, like a service, for instance) may write to the unknown context, therefore leading to losing logs.
It is recommended to create log instances using Current test context in such cases.