Replace file path configuration of `NLogFileConsumer` with single `WithFileNameTemplate` method
YevgeniyShunevych opened this issue · comments
Added NLogFileConsumer
property:
/// <summary>
/// Gets or sets the file name template.
/// The default value is <c>"Trace.log"</c>.
/// </summary>
public string FileNameTemplate { get; set; }
Removed NLogFileConsumer
properties:
DirectoryPathBuilder
FileNameBuilder
FilePathBuilder
Added LogConsumerAtataContextBuilder<NLogFileConsumer>
configuration extension method:
/// <summary>
/// Sets the file name template of the log file.
/// The default value is <c>"Trace.log"</c>.
/// </summary>
/// <param name="builder">The builder.</param>
/// <param name="fileNameTemplate">The file name template.</param>
/// <returns>The same builder instance.</returns>
public static LogConsumerAtataContextBuilder<NLogFileConsumer> WithFileNameTemplate(
this LogConsumerAtataContextBuilder<NLogFileConsumer> builder,
string fileNameTemplate)
Removed LogConsumerAtataContextBuilder<NLogFileConsumer>
configuration extension methods:
WithArtifactsDirectoryPath
WithDirectoryPath
WithFilePath
WithFileName