Skip to content
This repository has been archived by the owner on Dec 14, 2017. It is now read-only.

Describe how to use the LoggingOptions class #229

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions docsv2/configuration/logging.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down