mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-01-11 21:10:32 +01:00
Using --WireMockLogger in command line #372
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @devmariodiaz on GitHub (Oct 19, 2021).
Hello Stef,
I hope that you are doing well.
As you know, I'm using the standalone way to build a based WireMock solution
I want you to ask about the option --WireMockLogger. What are the possible values that this option could be taken?
@StefH commented on GitHub (Oct 19, 2021):
I think that two values are supported.
Described here:
https://github.com/WireMock-Net/WireMock.Net/wiki/WireMock-commandline-parameters
@devmariodiaz commented on GitHub (Oct 19, 2021):
Thanks for your quick answer Stef,
I would like to write all logs event to a file, but, I understand that this option only allows me only log in to the console?
@StefH commented on GitHub (Oct 20, 2021):
Hello Mario,
If you really use the
dotnet-WireMockor the docker version from WireMock.Net, these 2 are the only options for now.However, if you start WireMockServer yourself in a UnitTest or via your own ConsoleApp, you can just provide different loggers.
See this example which uses Log4Net: https://github.com/WireMock-Net/WireMock.Net/tree/master/examples/WireMock.Net.StandAlone.NETCoreApp
@StefH commented on GitHub (Oct 26, 2021):
Closing...