RollingFileAppender GetNextOutputFileName Method | Apache log4net™ SDK Documentation

Get the current output file name

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

C#
VB
C++
F#
Copy

    protected string GetNextOutputFileName(
    	string fileName
    )

    Protected Function GetNextOutputFileName (
    	fileName As String
    ) As String

    protected:
    String^ GetNextOutputFileName(
    	String^ fileName
    )

    member GetNextOutputFileName :
            fileName : string -> string

#### Parameters

fileName
  Type: System
  String
  the base file name

#### Return Value

Type: String
the output file name
Remarks

The output file name is based on the base fileName specified. If StaticLogFileName is set then the output file name is the same as the base file passed in. Otherwise the output file depends on the date pattern, on the count direction or both.
See Also

#### Reference

RollingFileAppender Class
log4net.Appender Namespace