FileAppender SetQWForFiles Method (Stream) | Apache log4net™ SDK Documentation

Sets the quiet writer used for file output

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    protected virtual void SetQWForFiles(
    	Stream fileStream
    )

    Protected Overridable Sub SetQWForFiles (
    	fileStream As Stream
    )

    protected:
    virtual void SetQWForFiles(
    	Stream^ fileStream
    )

    abstract SetQWForFiles :
            fileStream : Stream -> unit
    override SetQWForFiles :
            fileStream : Stream -> unit

#### Parameters

fileStream
  Type: System.IO
  Stream
  the file stream that has been opened for writing

Remarks

This implementation of [M:SetQWForFiles(Stream)] creates a StreamWriter over the fileStream and passes it to the [M:SetQWForFiles(TextWriter)] method.

This method can be overridden by sub classes that want to wrap the Stream in some way, for example to encrypt the output data using a System.Security.Cryptography.CryptoStream.

See Also

#### Reference

FileAppender Class
SetQWForFiles Overload
log4net.Appender Namespace