-
-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WireMock Standalone - null reference exception since settings.Logger #412
Labels
Comments
|
Thanks Stef. For 2, if the default is |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Two observations about the documentation at
https://github.com/WireMock-Net/WireMock.Net/wiki/WireMock-as-a-standalone-process
The page lists the argument
--WireMockConsoleLogger
, however the correct name isWireMockLogger
. See https://github.com/WireMock-Net/WireMock.Net/blob/master/src/WireMock.Net/Settings/WireMockServerSettingsParser.cs#L46-L49The page also says that the default logger is
WireMockNullLogger
, however if you try not to supply a logger you get a null reference exception sincesettings.Logger
remains null and a line in StandAloneApp tries to use it:https://github.com/WireMock-Net/WireMock.Net/blob/master/src/WireMock.Net.StandAlone/StandAloneApp.cs#L43
The text was updated successfully, but these errors were encountered: