From 6e1c754678d2569d90b0a79c03493ef05dc477d3 Mon Sep 17 00:00:00 2001 From: Lior Banai Date: Wed, 22 Jul 2020 20:26:23 +0300 Subject: [PATCH] Support for reading compressed files. Fix #45 --- .../Analogy.LogViewer.Serilog.csproj | 8 ++++---- Analogy.LogViewer.Serilog/ChangeLogList.cs | 1 + Analogy.LogViewer.Serilog/SerilogSettings.cs | 4 ++-- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/Analogy.LogViewer.Serilog/Analogy.LogViewer.Serilog.csproj b/Analogy.LogViewer.Serilog/Analogy.LogViewer.Serilog.csproj index 7397c1b..d51c70c 100644 --- a/Analogy.LogViewer.Serilog/Analogy.LogViewer.Serilog.csproj +++ b/Analogy.LogViewer.Serilog/Analogy.LogViewer.Serilog.csproj @@ -20,10 +20,10 @@ AnalogySerilog.png true - 1.2.4.1 - 1.2.4.1 + 1.2.5 + 1.2.5.0 Analogy.LogViewer - 1.2.4.1 + 1.2.5.0 true @@ -40,7 +40,7 @@ - + diff --git a/Analogy.LogViewer.Serilog/ChangeLogList.cs b/Analogy.LogViewer.Serilog/ChangeLogList.cs index 341ef94..419bd89 100644 --- a/Analogy.LogViewer.Serilog/ChangeLogList.cs +++ b/Analogy.LogViewer.Serilog/ChangeLogList.cs @@ -8,6 +8,7 @@ public static class ChangeLogList { public static IEnumerable GetChangeLog() { + yield return new AnalogyChangeLog("Support for reading compressed files. #45", AnalogChangeLogType.Improvement, "Lior Banai", new DateTime(2020, 07, 22)); yield return new AnalogyChangeLog("Duplicated/Extra columns with the dynamic columns feature. #44", AnalogChangeLogType.Improvement, "Lior Banai", new DateTime(2020, 07, 10)); yield return new AnalogyChangeLog("Add dynamic columns per file properties. #43", AnalogChangeLogType.Improvement, "Lior Banai", new DateTime(2020, 07, 03)); yield return new AnalogyChangeLog("Initial version", AnalogChangeLogType.None, "Lior Banai", new DateTime(2019, 12, 14)); diff --git a/Analogy.LogViewer.Serilog/SerilogSettings.cs b/Analogy.LogViewer.Serilog/SerilogSettings.cs index 575c7dc..2ce4a95 100644 --- a/Analogy.LogViewer.Serilog/SerilogSettings.cs +++ b/Analogy.LogViewer.Serilog/SerilogSettings.cs @@ -24,8 +24,8 @@ public SerilogSettings() Format = SerilogFileFormat.CLEF; Directory = string.Empty; IgnoredAttributes = new List() { "N" }; - FileOpenDialogFilters = "All Supported formats (*.Clef;*.log)|*.clef;*.log|Clef format (*.clef)|*.clef|Plain log text file (*.log)|*.log"; - SupportFormats = new List { "*.Clef", "*.log" }; + FileOpenDialogFilters = "All Supported formats (*.Clef;*.log;*.gz)|*.clef;*.log;*.gz|Clef format (*.clef)|*.clef|Plain log text file (*.log)|*.log|GZIP file (*.gz)|*.gz"; + SupportFormats = new List { "*.Clef", "*.log", "*.gz" }; RegexPatterns = new List(); RegexPatterns.Add(new RegexPattern(@"\$(?\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2},\d{3})+\|+(?\d+)+\|(?\w+)+\|+(?.*)\|(?.*)", "yyyy-MM-dd HH:mm:ss,fff", ""));