AdoNetAppender MembersApache log4net™ SDK Documentation
The AdoNetAppender type exposes the following members.
Constructors

  NameDescription
Public methodAdoNetAppender
Initializes a new instance of the AdoNetAppender class.
Back to Top
Methods

  NameDescription
Public methodActivateOptions
Initialize the appender based on the options set
(Overrides BufferingAppenderSkeleton ActivateOptions .)
Public methodAddFilter
Adds a filter to the end of the filter chain.
(Inherited from AppenderSkeleton.)
Public methodAddParameter
Adds a parameter to the command.
Protected methodAppend( LoggingEvent )
Append a bulk array of logging events.
(Inherited from AppenderSkeleton.)
Protected methodAppend(LoggingEvent)
This method is called by the DoAppend(LoggingEvent) method.
(Inherited from BufferingAppenderSkeleton.)
Public methodClearFilters
Clears the filter list for this appender.
(Inherited from AppenderSkeleton.)
Public methodClose
Closes the appender and release resources.
(Inherited from AppenderSkeleton.)
Protected methodCreateConnection
Creates an OnlineIDbConnection instance used to connect to the database.
Public methodDoAppend(LoggingEvent)
Performs threshold checks and invokes filters before delegating actual logging to the subclasses specific [M:Append(LoggingEvent)] method.
(Inherited from AppenderSkeleton.)
Public methodDoAppend( LoggingEvent )
Performs threshold checks and invokes filters before delegating actual logging to the subclasses specific [M:Append(LoggingEvent[])] method.
(Inherited from AppenderSkeleton.)
Public methodOnlineEquals
Determines whether the specified OnlineObject is equal to the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodFilterEvent
Test if the logging event should we output by this appender
(Inherited from AppenderSkeleton.)
Protected methodFinalize
Finalizes this appender by calling the implementation's Close  method.
(Inherited from AppenderSkeleton.)
Public methodFlush 
Flush the currently buffered events
(Inherited from BufferingAppenderSkeleton.)
Public methodFlush(Boolean)
Flush the currently buffered events
(Inherited from BufferingAppenderSkeleton.)
Public methodOnlineGetHashCode
Serves as a hash function for a particular type.
(Inherited from OnlineObject.)
Protected methodGetLogStatement
Formats the log message into database statement text.
Public methodOnlineGetType
Gets the OnlineType of the current instance.
(Inherited from OnlineObject.)
Protected methodIsAsSevereAsThreshold
Checks if the message level is below this appender's threshold.
(Inherited from AppenderSkeleton.)
Protected methodOnlineMemberwiseClone
Creates a shallow copy of the current OnlineObject.
(Inherited from OnlineObject.)
Protected methodOnClose
Override the parent method to close the database
(Overrides BufferingAppenderSkeleton OnClose .)
Protected methodPreAppendCheck
Called before [M:Append(LoggingEvent)] as a precondition.
(Inherited from AppenderSkeleton.)
Protected methodRenderLoggingEvent(LoggingEvent)
Renders the LoggingEvent to a string.
(Inherited from AppenderSkeleton.)
Protected methodRenderLoggingEvent(TextWriter, LoggingEvent)
Renders the LoggingEvent to a string.
(Inherited from AppenderSkeleton.)
Protected methodResolveConnectionString
Resolves the connection string from the ConnectionString, ConnectionStringName, or AppSettingsKey property.
Protected methodResolveConnectionType
Retrieves the class type of the ADO.NET provider.
Protected methodSendBuffer( LoggingEvent )
Inserts the events into the database.
(Overrides BufferingAppenderSkeleton SendBuffer( LoggingEvent ).)
Protected methodSendBuffer(IDbTransaction,  LoggingEvent )
Writes the events to the database using the transaction specified.
Protected methodSendFromBuffer
Sends the contents of the buffer.
(Inherited from BufferingAppenderSkeleton.)
Public methodOnlineToString
Returns a OnlineString that represents the current OnlineObject.
(Inherited from OnlineObject.)
Back to Top
Fields

  NameDescription
Protected fieldm_parameters
The list of AdoNetAppenderParameter objects.
Back to Top
Properties

  NameDescription
Public propertyAppSettingsKey
The appSettings key from App.Config that contains the connection string.
Public propertyBufferSize
Gets or sets the size of the cyclic buffer used to hold the logging events.
(Inherited from BufferingAppenderSkeleton.)
Public propertyCommandText
Gets or sets the command text that is used to insert logging events into the database.
Public propertyCommandType
Gets or sets the command type to execute.
Protected propertyConnection
Gets or sets the underlying OnlineIDbConnection.
Public propertyConnectionString
Gets or sets the database connection string that is used to connect to the database.
Public propertyConnectionStringName
The connectionStrings key from App.Config that contains the connection string.
Public propertyConnectionType
Gets or sets the type name of the OnlineIDbConnection connection that should be created.
Public propertyErrorHandler
Gets or sets the IErrorHandler for this appender.
(Inherited from AppenderSkeleton.)
Public propertyEvaluator
Gets or sets the ITriggeringEventEvaluator that causes the buffer to be sent immediately.
(Inherited from BufferingAppenderSkeleton.)
Public propertyFilterHead
The filter chain.
(Inherited from AppenderSkeleton.)
Public propertyFix
Gets or sets a the fields that will be fixed in the event
(Inherited from BufferingAppenderSkeleton.)
Public propertyLayout
Gets or sets the ILayout for this appender.
(Inherited from AppenderSkeleton.)
Public propertyLossy
Gets or sets a value that indicates whether the appender is lossy.
(Inherited from BufferingAppenderSkeleton.)
Public propertyLossyEvaluator
Gets or sets the value of the ITriggeringEventEvaluator to use.
(Inherited from BufferingAppenderSkeleton.)
Public propertyName
Gets or sets the name of this appender.
(Inherited from AppenderSkeleton.)
Public propertyOnlyFixPartialEventDataObsolete.
Gets or sets a value indicating if only part of the logging event data should be fixed.
(Inherited from BufferingAppenderSkeleton.)
Public propertyReconnectOnError
Should this appender try to reconnect to the database on error.
Protected propertyRequiresLayout
Tests if this appender requires a Layout to be set.
(Inherited from AppenderSkeleton.)
Public propertySecurityContext
Gets or sets the SecurityContext used to call the NetSend method.
Public propertyThreshold
Gets or sets the threshold Level of this appender.
(Inherited from AppenderSkeleton.)
Public propertyUseTransactions
Should transactions be used to insert logging events in the database.
Back to Top
See Also