Suoranta.EnterpriseLib.Web - Developer API

LogToDbService<(Of <(<'TLogEntry>)>)> Constructor

Instantiate logger backed by Entity Framework

Namespace:  Suoranta.EnterpriseLib.Logging
Assembly:  Suoranta.EnterpriseLib (in Suoranta.EnterpriseLib.dll)

Syntax


public LogToDbService(
	DbContext context,
	MailService mailService,
	Sinks defaultOutput,
	Sinks errorOutput
)

Parameters

context
Type: DbContext
mailService
Type: Suoranta.EnterpriseLib.Util..::..MailService
defaultOutput
Type: Suoranta.EnterpriseLib.Logging..::..Sinks
Output target(s) of non-error messages
errorOutput
Type: Suoranta.EnterpriseLib.Logging..::..Sinks
Output target(s) of error messages