NUnit
Description
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.
Source and packages
GitHub repository: vostok/logging.nunit
NuGet package: Vostok.Logging.NUnit
Cement users should reference this module with the following command:
Details
Current test context
This type of context writes log events to the context of the test in which the log was created.
AsyncLocal context
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.
Last updated