Table of Contents

Class BuilderExtensions

Namespace
Innova.NLogExtensions.RestServer
Assembly
Innova.NLogExtensions.RestServer.dll

Provides extension methods for configuring NLog with a database.

public static class BuilderExtensions
Inheritance
BuilderExtensions

Methods

AddNLogToDatabase(WebApplicationBuilder, SqlConnectionOption)

Adds NLog to the database using the specified SQL connection option.

AddNLogToDatabase<TDBLogService>(WebApplicationBuilder, SqlConnectionOption)

Adds NLog to the database using the specified SQL connection option and a custom database logging service.

UseNLog(WebApplication)

Configures the web application to use NLog.