log4net SDK Reference |

# TextWriterAppender.PrepareWriter Method

Called to allow a subclass to lazily initialize the writer

[Visual Basic]
Overridable Protected Sub PrepareWriter()
[C#]
protected virtual void PrepareWriter();

#### Remarks

This method is called when an event is logged and the Writer or QuietWriter have not been set. This allows a subclass to attempt to initialize the writer multiple times.

#### See Also

TextWriterAppender Class | log4net.Appender Namespace