Vostok.Logging.NUnit.DependencyInjection
Microsoft.DependecyInjection extensions to add Vostok NUnit log.
Install
| Product | Versions |
|---|---|
| .NET Standard |
README
Vostok.Logging.NUnit
An implementation of ILog that writes log events to NUnit.
Build guide: https://github.com/vostok/devtools/blob/master/library-dev-conventions/how-to-build-a-library.md
User documentation: https://vostok.gitbook.io/logging/
Адаптер восточного лога для NUnit.
Логи могут быть записаны в:
- Контекст теста, который выполняется сейчас. Контекст берется из AsyncLocal. Подходит для стандартных тестов.
- В контекст теста, в котором был создан лог. Подходит, для локально поднятых сервисов и других мест, где AsyncLocal-контекст теряется или отсутствует).
- Запись лога в контекст теста, который выполняется сейчас:
а) ILog log = new NUnitTextWriterLog(new NUnitAsyncLocalTextWriterProvider());
б) serviceCollection.AddContextualNUnitLog()
- Запись лога в контекст теста, в котором был создан лог:
а) ILog log = new NUnitTextWriterLog(new NUnitTestContextTextWriterProvider(TestExecutionContext.CurrentContext));
б) serviceCollection.AddBoundNUnitLog()
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.