Свойство | Type | Description | |
---|---|---|---|
BeginInit | void | ||
EndInit | void | ||
GetActionText | string | ||
GetApplicationInfo | string | ||
GetErrorText | string | ||
GetExceptionGeneralInfo | string | ||
GetExceptionStackTrace | string | ||
GetScopeText | string | ||
GetSystemInfo | string | ||
ProcessExceptionsToDatabase | void | ||
UnhandledException | void | ||
m_databaseErrorQueue_ProcessException | void | ||
m_tableSizeCurtailmentTimer_Elapsed | void |
Méthode | Description | |
---|---|---|
ErrorLogger ( ) : System |
Initializes a new instance of the ErrorLogger class.
|
|
ErrorLogger ( IContainer container ) : System |
Initializes a new instance of the ErrorLogger class.
|
|
GetExceptionInfo ( |
Gets information about an Exception complete with system and application information.
|
|
Initialize ( ) : void |
Initializes the ErrorLogger object. Initialize() is to be called by user-code directly only if the ErrorLogger object is not consumed through the designer surface of the IDE. |
|
LoadSettings ( ) : void |
Loads saved settings for the ErrorLogger object from the config file if the PersistSettings property is set to true.
|
|
Log ( |
Logs information about the encountered Exception.
|
|
Log ( |
Logs information about the encountered Exception.
|
|
SaveSettings ( ) : void |
Saves settings for the ErrorLogger object to the config file if the PersistSettings property is set to true.
|
Méthode | Description | |
---|---|---|
Dispose ( bool disposing ) : void |
Releases the unmanaged resources used by the ErrorLogger object and optionally releases the managed resources.
|
|
ExceptionToDatabase ( |
Logs encountered Exception to the database.
|
|
ExceptionToEmail ( |
Logs encountered Exception to an e-mail message.
|
|
ExceptionToEventLog ( |
Logs encountered Exception to the EventLog.
|
|
ExceptionToFile ( |
Logs encountered Exception to the ErrorLog.
|
|
ExceptionToUI ( |
Logs encountered Exception to the application UI.
|
|
ExceptionToWebPage ( ) : void |
Shows Exception information in a Web Site.
|
|
ExceptionToWindowsCui ( ) : void |
Shows Exception information in a Console Application.
|
|
ExceptionToWindowsGui ( ) : void |
Shows Exception information in a Windows Application.
|
|
GetEmailAttachments ( ) : string |
Gets or sets the comma-separated or semicolon-separated list of file names to be attached to the Mail message.
|
|
GetExtendedMoreInfoText ( string bullet ) : string |
Allows other loggers to extend "more info text".
|
|
GetMoreInfoText ( ) : string |
Default Delegate for MoreInfoTextMethod.
|
|
OnLoggingException ( |
Raises the LoggingException event.
|
|
Register ( ) : bool |
Registers the ErrorLogger object to handle unhandled Exception if the HandleUnhandledException property is set to true.
|
|
Unregister ( ) : bool |
Unregister the ErrorLogger object from handling unhandled Exception.
|
Méthode | Description | |
---|---|---|
BeginInit ( ) : void | ||
EndInit ( ) : void | ||
GetActionText ( ) : string |
Default Delegate for ActionTextMethod.
|
|
GetApplicationInfo ( ) : string |
Gets information about the current application.
|
|
GetErrorText ( ) : string |
Default Delegate for ErrorTextMethod.
|
|
GetExceptionGeneralInfo ( |
Gets common information about an Exception.
|
|
GetExceptionStackTrace ( |
Gets stack trace information about an Exception.
|
|
GetScopeText ( ) : string |
Default Delegate for ScopeTextMethod.
|
|
GetSystemInfo ( bool includeUserInfo ) : string |
Gets information about the system where current application is executing.
|
|
ProcessExceptionsToDatabase ( Tuple |
||
UnhandledException ( object sender, |
||
m_databaseErrorQueue_ProcessException ( object sender, EventArgs |
||
m_tableSizeCurtailmentTimer_Elapsed ( object sender, System e ) : void |
protected Dispose ( bool disposing ) : void | ||
disposing | bool | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Résultat | void |
public ErrorLogger ( IContainer container ) : System | ||
container | IContainer | |
Résultat | System |
protected ExceptionToDatabase ( |
||
exception | ||
Résultat | void |
protected ExceptionToEmail ( |
||
exception | ||
Résultat | void |
protected ExceptionToEventLog ( |
||
exception | ||
Résultat | void |
protected ExceptionToFile ( |
||
exception | ||
Résultat | void |
protected ExceptionToUI ( |
||
exception | ||
Résultat | void |
public static GetExceptionInfo ( |
||
ex | ||
includeUserInfo | bool | true if user information is to be include; otherwise false. |
Résultat | string |
protected GetExtendedMoreInfoText ( string bullet ) : string | ||
bullet | string | Type of bullet to use for extended info text. |
Résultat | string |
public Log ( |
||
exception | Encountered |
|
Résultat | void |
public Log ( |
||
exception | Encountered |
|
exitApplication | bool | true to exit the application; otherwise false. |
Résultat | void |
protected OnLoggingException ( |
||
exception | ||
Résultat | void |