log4net SDK Reference |

# ProtectCloseTextWriter.Attach Method

Attach this instance to a different underlying TextWriter

[Visual Basic]
Public Sub Attach( _
ByVal writer As TextWriter _
)
[C#]
public void Attach(
TextWriter writer
);

#### Parameters

writer
  the writer to attach to

#### Remarks

Attach this instance to a different underlying TextWriter

#### See Also

ProtectCloseTextWriter Class | log4net.Util Namespace