Logging

You can optionally specify a logger for a client. NClient does not provide a default implementation of the logger, but you can use any implementation of Microsoft.Extensions.Logging.ILogger<TCategoryName> interface (see Microsoft docs).

ILogger<IProductServiceClient> logger = ...;

IProductServiceClient client = NClientProvider
    .Use<IProductServiceClient>(host: "http://localhost:8080")
    .WithLogging(logger)
    .Build();