log4net.AppenderAppenderSkeleton
log4net.AppenderTraceAppender
Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
The TraceAppender type exposes the following members.
Name | Description | |
---|---|---|
TraceAppender |
Initializes a new instance of the TraceAppender.
| |
TraceAppender(ILayout) | Obsolete.
Initializes a new instance of the TraceAppender
with a specified layout.
|
Name | Description | |
---|---|---|
Category |
The category parameter sent to the Trace method.
| |
ErrorHandler |
Gets or sets the IErrorHandler for this appender.
(Inherited from AppenderSkeleton.) | |
FilterHead |
The filter chain.
(Inherited from AppenderSkeleton.) | |
ImmediateFlush |
Gets or sets a value that indicates whether the appender will
flush at the end of each write.
| |
Layout |
Gets or sets the ILayout for this appender.
(Inherited from AppenderSkeleton.) | |
Name |
Gets or sets the name of this appender.
(Inherited from AppenderSkeleton.) | |
RequiresLayout |
This appender requires a log4net.Layout to be set.
(Overrides AppenderSkeletonRequiresLayout.) | |
Threshold |
Gets or sets the threshold Level of this appender.
(Inherited from AppenderSkeleton.) |
Name | Description | |
---|---|---|
ActivateOptions |
Initialize the appender based on the options set
(Inherited from AppenderSkeleton.) | |
AddFilter |
Adds a filter to the end of the filter chain.
(Inherited from AppenderSkeleton.) | |
Append(LoggingEvent) |
Append a bulk array of logging events.
(Inherited from AppenderSkeleton.) | |
Append(LoggingEvent) |
Writes the logging event to the Trace system.
(Overrides AppenderSkeletonAppend(LoggingEvent).) | |
ClearFilters |
Clears the filter list for this appender.
(Inherited from AppenderSkeleton.) | |
Close |
Closes the appender and release resources.
(Inherited from AppenderSkeleton.) | |
DoAppend(LoggingEvent) |
Performs threshold checks and invokes filters before
delegating actual logging to the subclasses specific
[M:Append(LoggingEvent)] method.
(Inherited from AppenderSkeleton.) | |
DoAppend(LoggingEvent) |
Performs threshold checks and invokes filters before
delegating actual logging to the subclasses specific
[M:Append(LoggingEvent[])] method.
(Inherited from AppenderSkeleton.) | |
Equals | (Inherited from Object.) | |
FilterEvent |
Test if the logging event should we output by this appender
(Inherited from AppenderSkeleton.) | |
Finalize |
Finalizes this appender by calling the implementation's
Close method.
(Inherited from AppenderSkeleton.) | |
Flush |
Flushes any buffered log data.
(Overrides AppenderSkeletonFlush(Int32).) | |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) | |
GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
IsAsSevereAsThreshold |
Checks if the message level is below this appender's threshold.
(Inherited from AppenderSkeleton.) | |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
OnClose |
Is called when the appender is closed. Derived classes should override
this method if resources need to be released.
(Inherited from AppenderSkeleton.) | |
PreAppendCheck |
Called before [M:Append(LoggingEvent)] as a precondition.
(Inherited from AppenderSkeleton.) | |
RenderLoggingEvent(LoggingEvent) |
Renders the LoggingEvent to a string.
(Inherited from AppenderSkeleton.) | |
RenderLoggingEvent(TextWriter, LoggingEvent) |
Renders the LoggingEvent to a string.
(Inherited from AppenderSkeleton.) | |
ToString | (Inherited from Object.) |
The application configuration file can be used to control what listeners are actually used. See the MSDN documentation for the Trace class for details on configuring the trace system.
Events are written using the System.Diagnostics.Trace.Write(string,string) method. The event's logger name is the default value for the category parameter of the Write method.
Compact Framework
The Compact Framework does not support the Trace
class for any operation except Assert. When using the Compact Framework this
appender will write to the Debug system rather than
the Trace system. This appender will therefore behave like the DebugAppender.