Skip to content

Commit df94de4

Browse files
author
Jamie Kurtz
committed
logging readme content
1 parent 6f47306 commit df94de4

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,18 @@ To create the certificate used in this sample code:
6060
At this point, the client and server code will be able to utilize the certificate for token signing and validation.
6161

6262

63+
Logging
64+
-------
65+
66+
You can enable logging for this library by configuring a log4net logger in your web.config file - similar to the sample site's
67+
web.config file. The logger you need to enable is called `JwtAuthForWebAPI.JwtAuthenticationMessageHandler`. You need web.config
68+
content, as well as the following line in your site startup code:
69+
70+
log4net.Config.XmlConfigurator.Configure();
71+
72+
Please view the web.config file in the JwtAuthForWebAPI.SampleSite project for an example of setting up the logger.
73+
74+
6375

6476

6577

0 commit comments

Comments
 (0)