C# 클래스 Elmah.XmlFileErrorLog

An ErrorLog implementation that uses XML files stored on disk as its backing store.
상속: Elmah.ErrorLog
파일 보기 프로젝트 열기: elmah/Elmah 1 사용 예제들

공개 메소드들

메소드 설명
GetError ( string id ) : ErrorLogEntry

Returns the specified error from the filesystem, or throws an exception if it does not exist.

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

Returns a page of errors from the folder in descending order of logged time as defined by the sortable filenames.

Log ( Error error ) : string

Logs an error to the database.

Logs an error as a single XML file stored in a folder. XML files are named with a sortable date and a unique identifier. Currently the XML files are stored indefinately. As they are stored as files, they may be managed using standard scheduled jobs.

XmlFileErrorLog ( System.Collections.IDictionary config ) : System

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

XmlFileErrorLog ( string logPath ) : System

Initializes a new instance of the XmlFileErrorLog class to use a specific path to store/load XML files.

비공개 메소드들

메소드 설명
IsUserFile ( FileAttributes attributes ) : bool
LoadErrorLogEntry ( string path ) : ErrorLogEntry
MapPath ( string path ) : string

메소드 상세

GetError() 공개 메소드

Returns the specified error from the filesystem, or throws an exception if it does not exist.
public GetError ( string id ) : ErrorLogEntry
id string
리턴 ErrorLogEntry

GetErrors() 공개 메소드

Returns a page of errors from the folder in descending order of logged time as defined by the sortable filenames.
public GetErrors ( int pageIndex, int pageSize, ICollection errorEntryList ) : int
pageIndex int
pageSize int
errorEntryList ICollection
리턴 int

Log() 공개 메소드

Logs an error to the database.
Logs an error as a single XML file stored in a folder. XML files are named with a sortable date and a unique identifier. Currently the XML files are stored indefinately. As they are stored as files, they may be managed using standard scheduled jobs.
public Log ( Error error ) : string
error Error
리턴 string

XmlFileErrorLog() 공개 메소드

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

XmlFileErrorLog() 공개 메소드

Initializes a new instance of the XmlFileErrorLog class to use a specific path to store/load XML files.
public XmlFileErrorLog ( string logPath ) : System
logPath string
리턴 System