Method | Description | |
---|---|---|
GetError ( string id ) : |
Returns the specified error from the filesystem, or throws an exception if it does not exist.
|
|
GetErrors ( int pageIndex, int pageSize, ICollection |
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.
|
Method | Description | |
---|---|---|
IsUserFile ( FileAttributes attributes ) : bool | ||
LoadErrorLogEntry ( string path ) : |
||
MapPath ( string path ) : string |
public GetError ( string id ) : |
||
id | string | |
return |
public GetErrors ( int pageIndex, int pageSize, ICollection |
||
pageIndex | int | |
pageSize | int | |
errorEntryList | ICollection |
|
return | int |
public XmlFileErrorLog ( System.Collections.IDictionary config ) : System | ||
config | System.Collections.IDictionary | |
return | System |
public XmlFileErrorLog ( string logPath ) : System | ||
logPath | string | |
return | System |