log4net SDK Reference |

# TraceAppender Class

Appends log events to the Trace system.

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

System.Object
log4net.Appender.AppenderSkeleton
log4net.Appender.TraceAppender

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

#### Thread Safety

This type is not safe for multithreaded operations.

#### Remarks

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 passed as the value for the category name to 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.

#### Requirements

Namespace: log4net.Appender

Assembly: log4net (in log4net.dll)

#### See Also

TraceAppender Members | log4net.Appender Namespace