Skip to content

Commit

Permalink
fixed SetQWForFiles method name in FileAppender from #196 (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
sketchturner authored and FreeAndNil committed Dec 19, 2024
1 parent 33aea96 commit e78f9e3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/log4net/Appender/FileAppender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ protected virtual void OpenFile(string fileName, bool append)
_stream.AcquireLock();
try
{
SetQwForFiles(_stream);
SetQWForFiles(_stream);
}
finally
{
Expand All @@ -1250,22 +1250,22 @@ protected virtual void OpenFile(string fileName, bool append)
/// <param name="fileStream">the file stream that has been opened for writing</param>
/// <remarks>
/// <para>
/// This implementation of <see cref="SetQwForFiles(Stream)"/> creates a <see cref="StreamWriter"/>
/// This implementation of <see cref="SetQWForFiles(Stream)"/> creates a <see cref="StreamWriter"/>
/// over the <paramref name="fileStream"/> and passes it to the
/// <see cref="SetQwForFiles(TextWriter)"/> method.
/// <see cref="SetQWForFiles(TextWriter)"/> method.
/// </para>
/// <para>
/// This method can be overridden by subclasses that want to wrap the
/// <see cref="Stream"/> in some way, for example to encrypt the output
/// data using a <c>System.Security.Cryptography.CryptoStream</c>.
/// </para>
/// </remarks>
protected virtual void SetQwForFiles(Stream fileStream)
protected virtual void SetQWForFiles(Stream fileStream)
{
#pragma warning disable CA2000 // Dispose objects before losing scope
StreamWriter writer = new(fileStream, Encoding);
#pragma warning restore CA2000 // Dispose objects before losing scope
SetQwForFiles(writer);
SetQWForFiles(writer);
}

/// <summary>
Expand All @@ -1278,7 +1278,7 @@ protected virtual void SetQwForFiles(Stream fileStream)
/// wrap the <see cref="TextWriter"/> in some way.
/// </para>
/// </remarks>
protected virtual void SetQwForFiles(TextWriter writer)
protected virtual void SetQWForFiles(TextWriter writer)
=> QuietWriter = new(writer, ErrorHandler);

/// <summary>
Expand Down
2 changes: 1 addition & 1 deletion src/log4net/Appender/RollingFileAppender.cs
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ public RollingMode RollingStyle
/// This method can be overridden by subclasses.
/// </remarks>
/// <param name="writer">the writer to set</param>
protected override void SetQwForFiles(TextWriter writer)
protected override void SetQWForFiles(TextWriter writer)
=> QuietWriter = new CountingQuietTextWriter(writer, ErrorHandler);

/// <summary>
Expand Down

0 comments on commit e78f9e3

Please sign in to comment.