Error Logging Filter and Route (ELFAR) Wiki
Error Logging Filter and Route (ELFAR) for ASP.NET MVC
Brought to you by:
stevenbey
Initialises a new instance of the AccessErrorLogProviderclass.
public AccessErrorLogProvider(
string connectionString = @"|DataDirectory|\Elfar.mdb"
)
connectionString
Type: System.String
The connection string or the name of the<connectionStrings>item to be used to open the Access database.
AccessErrorLogProvider manages storage of error log information in an Access database.
The following example shows the most basic instantiation of the AccessErrorLogProvider, which uses either the 'Elfar' <connectionStrings> item or the first item in the <connectionStrings> collection (if defined).
var provider = new AccessErrorLogProvider();
The following example shows the name of the <connectionStrings> item being specified.
var provider = new AccessErrorLogProvider(connectionString: @"Logs");
The following example shows the connection string being specified.
var provider = new AccessErrorLogProvider(connectionString: @"|DataDirectory|\Logs.mdb");