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 SQLiteErrorLogProvider
class.
public SQLiteErrorLogProvider( string connectionString = @"|DataDirectory|\Elfar.db" )
connectionString
Type: System.String
The connection string or the name of the<connectionStrings>
item to be used to open the SQLite database.
SQLiteErrorLogProvider
manages the storage and retrieval of error log information in a SQLite database.
The following example shows the most basic instantiation of the SQLiteErrorLogProvider
, which uses either the 'Elfar'
<connectionStrings>
item or the first item in the <connectionStrings>
collection* (if defined).
* any <connectionStrings>
in your machine.config
will be included.
var provider = new SQLiteErrorLogProvider();
The following example shows the name of the <connectionStrings>
item being specified.
var provider = new SQLiteErrorLogProvider("Logs");
The following example shows the connection string being specified.
var provider = new SQLiteErrorLogProvider(@"|DataDirectory|\Logs.db");