Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace file path configuration of NLogFileConsumer with single WithFileNameTemplate method #827

Closed
YevgeniyShunevych opened this issue Feb 19, 2024 · 0 comments
Assignees
Milestone

Comments

@YevgeniyShunevych
Copy link
Member

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant