Apache log4net� SDK Documentation - Microsoft .NET Framework 4.0

AdoNetAppender�Methods

The methods of the AdoNetAppender class are listed below. For a complete list of AdoNetAppender class members, see the AdoNetAppender Members topic.

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 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