You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
Is there a way to set log level in WireMock dotnet tool to disable debug messages?
Or disable logging entirely?
It's useful to see request/response when you are setting everything up, but once that's done, those logs are just spam.
From what I understand the logger currently is created in Program.cs with debug level & passed into StandAloneApp logic.
The "logger is not null" check will always be true & just reassign the logger, without possibility to override it with console arguments.
And also there is only check for WireMockConsoleLogger, and no way to use the WireMockNullLogger, that probably disables the logging.
Please let me know if I missed something, or of any other way to get rid of request/response logging.
Thank you
The text was updated successfully, but these errors were encountered:
The reason I've created an own simple logging class in WireMock, is that I cannot use Microsoft.Extensions.Logging.Abstractions because I'm still supporting older frameworks like 4.5.2 & 4.6
Hi.
Is there a way to set log level in WireMock dotnet tool to disable debug messages?
Or disable logging entirely?
It's useful to see request/response when you are setting everything up, but once that's done, those logs are just spam.
From what I understand the logger currently is created in Program.cs with debug level & passed into StandAloneApp logic.
WireMock.Net/src/dotnet-WireMock.Net/Program.cs
Line 23 in 49b29d7
And here
WireMock.Net/src/WireMock.Net/Settings/WireMockServerSettingsParser.cs
Line 65 in 49b29d7
The "logger is not null" check will always be true & just reassign the logger, without possibility to override it with console arguments.
And also there is only check for WireMockConsoleLogger, and no way to use the WireMockNullLogger, that probably disables the logging.
Please let me know if I missed something, or of any other way to get rid of request/response logging.
Thank you
The text was updated successfully, but these errors were encountered: