From bc27be491eebc357758b9c5809f5e7a62f967f03 Mon Sep 17 00:00:00 2001 From: Steve Date: Wed, 5 Oct 2016 17:50:46 -0400 Subject: [PATCH] Describe how to use the LoggingOptions class The rest of the page talks about Log.Logger related things so it's not clear where LoggingOptions goes --- docsv2/configuration/logging.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docsv2/configuration/logging.md b/docsv2/configuration/logging.md index 7a17f09..8b650d2 100644 --- a/docsv2/configuration/logging.md +++ b/docsv2/configuration/logging.md @@ -32,6 +32,21 @@ The `LoggingOptions` class has the following settings: * `EnableKatanaLogging` * If enabled, the Katana log output will be logged (this is often useful to troubleshoot problems with external identity providers) +Set the `LoggingOptions` property of your `IdentityServerOptions` to a new instance of the above class with the desired options. For example: + +```csharp +var options = new IdentityServerOptions +{ + // other options here... + + LoggingOptions = new LoggingOptions + { + EnableKatanaLogging = true + } +}; + +coreApp.UseIdentityServer( options ); +``` ## Example: Using Serilog to log to System.Diagnostics tracing The following example wires up [Serilog](http://serilog.net/) to log to the diagnostics trace (put that e.g. in Startup or in your hosting code).