log4net SDK Reference

ProtectCloseTextWriter Class

A TextWriter that ignores the Close message

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

System.Object
   System.MarshalByRefObject
      System.IO.TextWriter
         log4net.Util.TextWriterAdapter
            log4net.Util.ProtectCloseTextWriter

[Visual Basic]
Public Class ProtectCloseTextWriter
    Inherits TextWriterAdapter
[C#]
public class ProtectCloseTextWriter : TextWriterAdapter

Thread Safety

This type is not safe for multithreaded operations.

Remarks

This writer is used in special cases where it is necessary to protect a writer from being closed by a client.

Requirements

Namespace: log4net.Util

Assembly: log4net (in log4net.dll)

See Also

ProtectCloseTextWriter Members | log4net.Util Namespace