C# Класс Elmah.SQLiteErrorLog

An ErrorLog implementation that uses SQLite as its backing store.
Наследование: Elmah.ErrorLog
Показать файл Открыть проект

Открытые методы

Метод Описание
GetError ( string id ) : ErrorLogEntry

Returns the specified error from the database, or null if it does not exist.

GetErrors ( int pageIndex, int pageSize, ICollection errorEntryList ) : int

Returns a page of errors from the databse in descending order of logged time.

Log ( Error error ) : string

Logs an error to the database.

Use the stored procedure called by this implementation to set a policy on how long errors are kept in the log. The default implementation stores all errors for an indefinite time.

SQLiteErrorLog ( System.Collections.IDictionary config ) : System

Initializes a new instance of the SQLiteErrorLog class using a dictionary of configured settings.

SQLiteErrorLog ( string connectionString ) : System

Initializes a new instance of the SQLiteErrorLog class to use a specific connection string for connecting to the database.

Приватные методы

Метод Описание
InitializeDatabase ( ) : void

Описание методов

GetError() публичный Метод

Returns the specified error from the database, or null if it does not exist.
public GetError ( string id ) : ErrorLogEntry
id string
Результат ErrorLogEntry

GetErrors() публичный Метод

Returns a page of errors from the databse in descending order of logged time.
public GetErrors ( int pageIndex, int pageSize, ICollection errorEntryList ) : int
pageIndex int
pageSize int
errorEntryList ICollection
Результат int

Log() публичный Метод

Logs an error to the database.
Use the stored procedure called by this implementation to set a policy on how long errors are kept in the log. The default implementation stores all errors for an indefinite time.
public Log ( Error error ) : string
error Error
Результат string

SQLiteErrorLog() публичный Метод

Initializes a new instance of the SQLiteErrorLog class using a dictionary of configured settings.
public SQLiteErrorLog ( System.Collections.IDictionary config ) : System
config System.Collections.IDictionary
Результат System

SQLiteErrorLog() публичный Метод

Initializes a new instance of the SQLiteErrorLog class to use a specific connection string for connecting to the database.
public SQLiteErrorLog ( string connectionString ) : System
connectionString string
Результат System