Write log messages
Use the .NET Core logging API to write consistent log messages from Optimizely CMS 13 and custom application code.
Write log messages through the .NET Core Microsoft.Extensions.Logging API to keep CMS and custom application logs in a single, consistent output. Optimizely CMS 13 uses this API, so all logs flow to the same configured destination.
The EPiServer.Logging namespace provides a facade over Microsoft.Extensions.Logging. To manage logger configuration and output, go to Logging in .NET Core.
Backward compatibilityExisting projects that use the
EPiServer.LoggingAPI continue to work because the API acts as a facade overMicrosoft.Extensions.Logging. For new projects, log directly through theMicrosoft.Extensions.LoggingAPI.
Updated 17 days ago
