C# Class DotLog.FileLogging.RollingLogFile

Datei anzeigen Open project: subfuzion/dotlog

Public Properties

Property Type Description
DefaultFileNameTemplate string
NumberedFileNamePattern string

Public Methods

Method Description
GetNextFileName ( ) : string

Returns the name to use for the next rolling log file. The name's numeric part is a value that is one greater than the highest number actually found in the BasePath location, or else is equal to 1. It is formatted according to FileNameTemplate

Validate ( ) : void

Private Methods

Method Description
CreateFileNameGlobPattern ( ) : void

The glob pattern to use for searching for file names that match the current FileNameTemplate. Essentially, the '#' is simply replaced with '?' as used by the operating system for glob searching, but we use the regex to get the other file name parts and store them for later use.

Method Details

GetNextFileName() public method

Returns the name to use for the next rolling log file. The name's numeric part is a value that is one greater than the highest number actually found in the BasePath location, or else is equal to 1. It is formatted according to FileNameTemplate
public GetNextFileName ( ) : string
return string

Validate() public method

public Validate ( ) : void
return void

Property Details

DefaultFileNameTemplate public_oe static_oe property

public static string DefaultFileNameTemplate
return string

NumberedFileNamePattern public_oe static_oe property

public static string NumberedFileNamePattern
return string