From e78f9e3bd6f342e3c35e314c553ab3e3c09fd605 Mon Sep 17 00:00:00 2001 From: Oleh Titomyr Date: Thu, 19 Dec 2024 13:52:37 +0100 Subject: [PATCH] fixed SetQWForFiles method name in FileAppender from #196 (#217) --- src/log4net/Appender/FileAppender.cs | 12 ++++++------ src/log4net/Appender/RollingFileAppender.cs | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/log4net/Appender/FileAppender.cs b/src/log4net/Appender/FileAppender.cs index be8a9b6c..22c35881 100644 --- a/src/log4net/Appender/FileAppender.cs +++ b/src/log4net/Appender/FileAppender.cs @@ -1232,7 +1232,7 @@ protected virtual void OpenFile(string fileName, bool append) _stream.AcquireLock(); try { - SetQwForFiles(_stream); + SetQWForFiles(_stream); } finally { @@ -1250,9 +1250,9 @@ protected virtual void OpenFile(string fileName, bool append) /// the file stream that has been opened for writing /// /// - /// This implementation of creates a + /// This implementation of creates a /// over the and passes it to the - /// method. + /// method. /// /// /// This method can be overridden by subclasses that want to wrap the @@ -1260,12 +1260,12 @@ protected virtual void OpenFile(string fileName, bool append) /// data using a System.Security.Cryptography.CryptoStream. /// /// - 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); } /// @@ -1278,7 +1278,7 @@ protected virtual void SetQwForFiles(Stream fileStream) /// wrap the in some way. /// /// - protected virtual void SetQwForFiles(TextWriter writer) + protected virtual void SetQWForFiles(TextWriter writer) => QuietWriter = new(writer, ErrorHandler); /// diff --git a/src/log4net/Appender/RollingFileAppender.cs b/src/log4net/Appender/RollingFileAppender.cs index ef879c47..a91b7e27 100644 --- a/src/log4net/Appender/RollingFileAppender.cs +++ b/src/log4net/Appender/RollingFileAppender.cs @@ -468,7 +468,7 @@ public RollingMode RollingStyle /// This method can be overridden by subclasses. /// /// the writer to set - protected override void SetQwForFiles(TextWriter writer) + protected override void SetQWForFiles(TextWriter writer) => QuietWriter = new CountingQuietTextWriter(writer, ErrorHandler); ///