AspNetTraceAppender ClassApache log4net™ SDK Documentation

Appends log events to the ASP.NET OnlineTraceContext system.

Inheritance Hierarchy

OnlineSystem Object
  log4net.Appender AppenderSkeleton
    log4net.Appender AspNetTraceAppender

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 1.2.15.0 (1.2.15.0)
Syntax

public class AspNetTraceAppender : AppenderSkeleton
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(string) or Warn(string) method depending on the level of the logging event. The event's logger name is the default value for the category parameter of the Write/Warn method.

See Also