diff --git a/YouTube Downloader/Core/Debug/DebugLogger.cs b/YouTube Downloader/Core/Debug/DebugLogger.cs deleted file mode 100644 index 8fa491d..0000000 --- a/YouTube Downloader/Core/Debug/DebugLogger.cs +++ /dev/null @@ -1,60 +0,0 @@ -#if DEBUG -namespace YouTube.Downloader.Core.Debug -{ - using System; - using System.Globalization; - using System.IO; - - internal sealed class DebugLogger : IDisposable - { - private readonly StreamWriter _fileStreamWriter; - - static DebugLogger() - { - if (!Directory.Exists("Debug")) - { - Directory.CreateDirectory("Debug"); - } - } - - internal DebugLogger() - { - _fileStreamWriter = new StreamWriter($"Debug/{DateTime.Now.ToString(CultureInfo.InvariantCulture).Replace('/', '-').Replace(':', '-')}.log") - { - AutoFlush = true - }; - } - - internal void Log(string message) - { - Console.WriteLine(message); - _fileStreamWriter.WriteLine(message); - } - - internal void Exit() - { - _fileStreamWriter.Flush(); - _fileStreamWriter.Close(); - } - - ~DebugLogger() - { - Dispose(false); - } - - public void Dispose() - { - Dispose(true); - GC.SuppressFinalize(this); - } - - private void Dispose(bool disposing) - { - if (disposing) - { - _fileStreamWriter.Dispose(); - } - } - } -} -#endif // DEBUG \ No newline at end of file diff --git a/YouTube Downloader/YouTube Downloader.csproj b/YouTube Downloader/YouTube Downloader.csproj index 760e30e..51d349c 100644 --- a/YouTube Downloader/YouTube Downloader.csproj +++ b/YouTube Downloader/YouTube Downloader.csproj @@ -142,7 +142,6 @@ -