C# 클래스 Elmah.AccessErrorLog

An ErrorLog implementation that uses Microsoft Access as its backing store.
The MDB file is automatically created at the path specified in the connection string if it does not already exist.
상속: Elmah.ErrorLog
파일 보기 프로젝트 열기: elmah/Elmah

공개 메소드들

메소드 설명
AccessErrorLog ( System.Collections.IDictionary config ) : System

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

AccessErrorLog ( string connectionString ) : System

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

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.

비공개 메소드들

메소드 설명
InitializeDatabase ( ) : void

메소드 상세

AccessErrorLog() 공개 메소드

Initializes a new instance of the AccessErrorLog class using a dictionary of configured settings.
public AccessErrorLog ( System.Collections.IDictionary config ) : System
config System.Collections.IDictionary
리턴 System

AccessErrorLog() 공개 메소드

Initializes a new instance of the AccessErrorLog class to use a specific connection string for connecting to the database.
public AccessErrorLog ( string connectionString ) : System
connectionString string
리턴 System

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