Turn on authentication logging
IMPORTANT: You must turn on logging, only if you need to investigate a problem. This feature generates substantial amounts of data and you should turn it off, when you do not use it.
Turn on authentication logging
To this, perform the following:
- Navigate to Administration » Settings» Advanced » Authentication.
- Select Enable logging checkbox.
- Save your changes.
In case you are unable to access your website backend (for example due to authentication problems), you can manually enable authentication logging for troubleshootign purposes. To do that, you'll need to edit your Sitefinity CMS configuration files, so please proceed with the followign steps with caution:
- Edit the
~/App_Data/Sitefinity/Configuration/AuthenticationConfig.config file - Set enableLogging="True" in the
authenticationConfigtag:XML<?xml version="1.0" encoding="utf-8"?> <authenticationConfig xmlns:config="urn:telerik:sitefinity:configuration" xmlns:type="urn:telerik:sitefinity:configuration:type" config:version="15.0.8200.0" enableLogging="True"> </authenticationConfig>
The log information is available in the Authentication.log file, located in your project’s ~\App_Data\Sitefinity\Logs folder.
Change the default logger
To change the default logger, perform the following:
- Override the current
SitefinityStsLogProvideror implement customIdentityServer3.Core.Logging.ILogProvider - Register the provider in the
ObjectFactory, in the following way:
ObjectFactory.Container.RegisterInstance<IdentityServer3.Core.Logging.ILogProvider>(new MyLogger());
Want to learn more?
Enhance your Sitefinity skills by enrolling in free training sessions. Become Sitefinity certified through Progress Education Community to strengthen your professional credentials.
Get started with Integration Hub | Sitefinity Cloud
This free lesson teaches administrators, marketers, and other business professionals how to use Sitefinity Integration Hub to create automated workflows between Sitefinity and other business systems.
Web Security for Sitefinity Administrators
This free lesson teaches administrators the basics about protecting your Sitefinity instance and your sites from external threats. Configure HTTPS, SSL, allow lists for trusted sites, and cookie security, among others.
Foundations of Sitefinity ASP.NET Core Development
The free on-demand video course teaches developers how to use Sitefinity ASP.NET Core and take advantage of its decoupled architecture and modern development model.