log4net SDK Reference

AspNetTraceAppender Class

Appends log events to the ASP.NET TraceContext system.

For a list of all members of this type, see AspNetTraceAppender Members.

System.Object
   log4net.Appender.AppenderSkeleton
      log4net.Appender.AspNetTraceAppender

[Visual Basic]
Public Class AspNetTraceAppender
    Inherits AppenderSkeleton
[C#]
public class AspNetTraceAppender : AppenderSkeleton

Thread Safety

This type is not safe for multithreaded operations.

Remarks

Diagnostic information and tracing messages that you specify are appended to the output of the page that is sent to the requesting browser. Optionally, you can view this information from a separate trace viewer (Trace.axd) that displays trace information for every page in a given application.

Trace statements are processed and displayed only when tracing is enabled. You can control whether tracing is displayed to a page, to the trace viewer, or both.

The logging event is passed to the Write or Warn method depending on the level of the logging event.

Requirements

Namespace: log4net.Appender

Assembly: log4net (in log4net.dll)

See Also

AspNetTraceAppender Members | log4net.Appender Namespace