Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

AdoNetAppender Members

AdoNetAppender overview

Public Instance Constructors

AdoNetAppender Constructor Initializes a new instance of the AdoNetAppender class.

Public Instance Properties

AppSettingsKey The appSettings key from App.Config that contains the connection string.
BufferSize (inherited from BufferingAppenderSkeleton) Gets or sets the size of the cyclic buffer used to hold the logging events.
CommandText Gets or sets the command text that is used to insert logging events into the database.
CommandType Gets or sets the command type to execute.
ConnectionString Gets or sets the database connection string that is used to connect to the database.
ConnectionStringName The connectionStrings key from App.Config that contains the connection string.
ConnectionType Gets or sets the type name of the IDbConnection connection that should be created.
ErrorHandler (inherited from AppenderSkeleton) Gets or sets the IErrorHandler for this appender.
Evaluator (inherited from BufferingAppenderSkeleton) Gets or sets the ITriggeringEventEvaluator that causes the buffer to be sent immediately.
FilterHead (inherited from AppenderSkeleton) The filter chain.
Fix (inherited from BufferingAppenderSkeleton) Gets or sets a the fields that will be fixed in the event
Layout (inherited from AppenderSkeleton) Gets or sets the ILayout for this appender.
Lossy (inherited from BufferingAppenderSkeleton) Gets or sets a value that indicates whether the appender is lossy.
LossyEvaluator (inherited from BufferingAppenderSkeleton) Gets or sets the value of the ITriggeringEventEvaluator to use.
Name (inherited from AppenderSkeleton) Gets or sets the name of this appender.
OnlyFixPartialEventData (inherited from BufferingAppenderSkeleton)Obsolete. Gets or sets a value indicating if only part of the logging event data should be fixed.
ReconnectOnError Should this appender try to reconnect to the database on error.
SecurityContext Gets or sets the SecurityContext used to call the NetSend method.
Threshold (inherited from AppenderSkeleton) Gets or sets the threshold Level of this appender.
UseTransactions Should transactions be used to insert logging events in the database.

Public Instance Methods

ActivateOptions Initialize the appender based on the options set
AddFilter (inherited from AppenderSkeleton) Adds a filter to the end of the filter chain.
AddParameter Adds a parameter to the command.
ClearFilters (inherited from AppenderSkeleton) Clears the filter list for this appender.
Close (inherited from AppenderSkeleton) Closes the appender and release resources.
DoAppend (inherited from AppenderSkeleton)Overloaded. Performs threshold checks and invokes filters before delegating actual logging to the subclasses specific Append method.
Equals (inherited from Object)
Flush (inherited from BufferingAppenderSkeleton)Overloaded. Flush the currently buffered events
GetHashCode (inherited from Object)
GetType (inherited from Object)
ToString (inherited from Object)

Protected Instance Fields

m_parameters The list of AdoNetAppenderParameter objects.
m_usePreparedCommand Flag to indicate if we are using a command object

Protected Instance Properties

Connection Gets or sets the underlying IDbConnection.
RequiresLayout (inherited from AppenderSkeleton) Tests if this appender requires a Layout to be set.

Protected Instance Methods

Append (inherited from BufferingAppenderSkeleton)Overloaded. This method is called by the DoAppend method.
Append (inherited from AppenderSkeleton)Overloaded. Subclasses of AppenderSkeleton should implement this method to perform actual logging.
CreateConnection Creates an IDbConnection instance used to connect to the database.
FilterEvent (inherited from AppenderSkeleton) Test if the logging event should we output by this appender
Finalize (inherited from AppenderSkeleton) Finalizes this appender by calling the implementation's Close method.
GetLogStatement Formats the log message into database statement text.
IsAsSevereAsThreshold (inherited from AppenderSkeleton) Checks if the message level is below this appender's threshold.
MemberwiseClone (inherited from Object)
OnClose Override the parent method to close the database
PreAppendCheck (inherited from AppenderSkeleton) Called before Append as a precondition.
RenderLoggingEvent (inherited from AppenderSkeleton)Overloaded. Renders the LoggingEvent to a string.
ResolveConnectionString Resolves the connection string from the ConnectionString, ConnectionStringName, or AppSettingsKey property.
ResolveConnectionType Retrieves the class type of the ADO.NET provider.
SendBufferOverloaded. Inserts the events into the database.
SendFromBuffer (inherited from BufferingAppenderSkeleton) Sends the contents of the buffer.

See Also

AdoNetAppender Class | log4net.Appender Namespace