Menu

SQLiteErrorLogProvider.Ctor

Steven Bey

SQLiteErrorLogProvider Constructor(String)

Initialises a new instance of the SQLiteErrorLogProvider class.

Syntax

public SQLiteErrorLogProvider(
    string connectionString = @"|DataDirectory|\Elfar.db"
)

Parameters

connectionString

Type: System.String
The connection string or the name of the <connectionStrings> item to be used to open the SQLite database.

Remarks

SQLiteErrorLogProvider manages the storage and retrieval of error log information in a SQLite database.

Examples

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");

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.