Using --WireMockLogger in command line #372

Closed
opened 2025-12-29 08:27:06 +01:00 by adam · 4 comments
Owner

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?

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?
adam added the question label 2025-12-29 08:27:06 +01:00
adam closed this issue 2025-12-29 08:27:06 +01:00
Author
Owner

@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

@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
Author
Owner

@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?

@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?
Author
Owner

@StefH commented on GitHub (Oct 20, 2021):

Hello Mario,

If you really use the dotnet-WireMock or 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 20, 2021): Hello Mario, If you really use the `dotnet-WireMock` or 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
Author
Owner

@StefH commented on GitHub (Oct 26, 2021):

Closing...

@StefH commented on GitHub (Oct 26, 2021): Closing...
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/WireMock.Net#372