Click or drag to resize

ErrorLogger Properties

The ErrorLogger type exposes the following members.

Properties
  Name Description
Public property Code example ActionTextMethod Gets or sets the Delegate that provides text stating the action(s) that can be taken by the end-user after an Exception is encountered.
Public property ApplicationName Gets the name of the currently executing application.
Public property ApplicationType Gets the type of the currently executing application.
Protected property CanRaiseEvents Gets a value indicating whether the component can raise an event.
(Inherited from Component)
Public property ContactEmail Gets or sets the e-mail address where e-mail messages containing Exception information are to be sent when the LogToEmail property is set to true.
Public property ContactName Gets or sets the name of the person who can be contacted by the end-user in case of an Exception.
Public property ContactPhone Gets or sets the phone number that can be used by the end-user to communicate about an encountered Exception.
Public property Container Gets the IContainer that contains the Component.
(Inherited from Component)
Public property DatabaseLogSize Gets or sets the maximum exception log size to maintain when logging exceptions to the database.
Protected property DesignMode Gets a value that indicates whether the Component is currently in design mode.
(Inherited from Component)
Public property Enabled Gets or sets a boolean value that indicates whether the ErrorLogger object is currently enabled.
Public property ErrorLog Get the LogFile object used for logging Exception information to a file.
Public property Code example ErrorTextMethod Gets or sets the Delegate that provides common text stating what could have possibly caused the Exception.
Protected property Events Gets the list of event handlers that are attached to this Component.
(Inherited from Component)
Public property ExitOnUnhandledException Gets or sets a boolean value that indicates whether the application will terminate after logging an unhandled Exception.
Public property HandleUnhandledException Gets or sets a boolean value that indicates whether the ErrorLogger object must register itself to handle Exception that are not trapped inside of a try-catch block.
Public property IsDisposed Gets a flag that indicates whether the object has been disposed.
Public property LastException Get the last encountered Exception.
Public property Loggers Gets a list of methods registered for logging information about an encountered Exception.
Public property LogToDatabase Gets or sets a boolean value that indicates whether Exception information is to be written to the database.
Public property LogToEmail Gets or sets a boolean value that indicates whether Exception information is to be sent in an e-mail to the ContactEmail address.
Public property LogToEventLog Gets or sets a boolean value that indicates whether Exception information is to be written to the EventLog.
Public property LogToFile Gets or sets a boolean value that indicates whether Exception information is to be written to the ErrorLog.
Public property LogToUI Gets or sets a boolean value that indicates whether Exception information is to be displayed on the application UI.
Public property LogUserInfo Gets or sets a boolean value that indicates whether information about local user (for windows applications) or remote user (for web applications) is to be logged when logging an Exception.
Public property MoreInfoTextMethod Gets or sets the Delegate that provides text containing detailed information about the encountered Exception.
Public property Name Gets the unique identifier of the ErrorLogger object.
Public property PersistSettings Gets or sets a boolean value that indicates whether the settings of ErrorLogger object are to be saved to the config file.
Public property Code example ScopeTextMethod Gets or sets the Delegate that provides text stating what is going to happen as a result of the Exception.
Public property SettingsCategory Gets or sets the category under which the settings of ErrorLogger object are to be saved to the config file if the PersistSettings property is set to true.
Public property Site Gets or sets the ISite of the Component.
(Inherited from Component)
Public property SmtpServer Gets or sets the SMTP server to be used for sending e-mail messages containing Exception information to the ContactEmail address.
Public property Status Gets the descriptive status of the ErrorLogger object.
Public property SuppressInteractiveLogging Gets or sets flag that controls if Loggers requiring interaction either directly or indirectly when logging handled Exception using the Log(Exception) method are enabled.
Top
See Also