FileAppender LockingModelBase CreateStream Method | Apache log4net™ SDK Documentation

Helper method that creates a FileStream under CurrentAppender's SecurityContext.

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

C#
VB
C++
F#
Copy

    protected Stream CreateStream(
    	string filename,
    	bool append,
    	FileShare fileShare
    )

    Protected Function CreateStream (
    	filename As String,
    	append As Boolean,
    	fileShare As FileShare
    ) As Stream

    protected:
    Stream^ CreateStream(
    	String^ filename,
    	bool append,
    	FileShare fileShare
    )

    member CreateStream :
            filename : string *
            append : bool *
            fileShare : FileShare -> Stream

#### Parameters

filename
  Type: System
  String
append
  Type: System
  Boolean
fileShare
  Type: System.IO
  FileShare

#### Return Value

Type: Stream

[Missing <returns> documentation for "M:log4net.Appender.FileAppender.LockingModelBase.CreateStream(System.String,System.Boolean,System.IO.FileShare)"]

Remarks

Typically called during OpenFile or AcquireLock.

If the directory portion of the filename does not exist, it is created via Directory.CreateDirecctory.

See Also

#### Reference

FileAppender
LockingModelBase Class
log4net.Appender Namespace