You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

24 lines
555 B

  1. using Microsoft.Extensions.Logging;
  2. using Xunit.Abstractions;
  3. namespace DotNetCore.CAP.Test.Helpers
  4. {
  5. public class TestLoggingProvider : ILoggerProvider
  6. {
  7. private readonly ITestOutputHelper _outputHelper;
  8. public TestLoggingProvider(ITestOutputHelper outputHelper)
  9. {
  10. _outputHelper = outputHelper;
  11. }
  12. public void Dispose()
  13. {
  14. }
  15. public ILogger CreateLogger(string categoryName)
  16. {
  17. return new TestLogger(_outputHelper, categoryName);
  18. }
  19. }
  20. }