From 088e7e4c3b02545b2c10b7e68eeb99d12630ccc2 Mon Sep 17 00:00:00 2001 From: Stef Heyenrath Date: Sun, 6 Jan 2019 11:21:53 +0100 Subject: [PATCH] Updated Settings (markdown) --- Settings.md => Settings---Configuration.md | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) rename Settings.md => Settings---Configuration.md (80%) diff --git a/Settings.md b/Settings---Configuration.md similarity index 80% rename from Settings.md rename to Settings---Configuration.md index ee45ca2..e2fede0 100644 --- a/Settings.md +++ b/Settings---Configuration.md @@ -75,13 +75,18 @@ Action which is called (with the IAppBuilder or IApplicationBuilder) after the i The [IWireMockLogger](https://github.com/WireMock-Net/WireMock.Net/blob/master/src/WireMock.Net/Logging/IWireMockLogger.cs) interface which logs Debug, Info, Warning or Error. By default this is implemented by a default console logger [WireMockConsoleLogger.cs](https://github.com/WireMock-Net/WireMock.Net/blob/master/src/WireMock.Net/Logging/WireMockConsoleLogger.cs). + But also a Null logger is available [WireMockNullLogger.cs](https://github.com/WireMock-Net/WireMock.Net/blob/master/src/WireMock.Net/Logging/WireMockNullLogger.cs). - /// - /// Handler to interact with the file system to read and write static mapping files. - /// - [PublicAPI] - IFileSystemHandler FileSystemHandler { get; set; } +And you can implement your own logger, like [WireMockLog4NetLogger.cs](https://github.com/WireMock-Net/WireMock.Net/blob/master/examples/WireMock.Net.Service/WireMockLog4NetLogger.cs). + + +### FileSystemHandler +Handler to interact with the file system to read and write static mapping files. + +By default this is implemented by the [LocalFileSystemHandler.cs](https://github.com/WireMock-Net/WireMock.Net/blob/master/src/WireMock.Net/Handlers/LocalFileSystemHandler.cs), however you can implement your own version as defined here as an example [CustomFileSystemFileHandler.cs](https://github.com/WireMock-Net/WireMock.Net/blob/master/examples/WireMock.Net.Console.Net452.Classic/CustomFileSystemFileHandler.cs). + +Implementing your own version from this FileSystemHandler can be useful when running in Azure or Docker Containers.