Home

Awesome

Analogy.LogViewer.RegexParser <img src="./Assets/AnalogyRegex.png" align="right" width="155px" height="155px">

<p align="center">

.NET Core Desktop <a href="https://github.com/Analogy-LogViewer/Analogy.LogViewer.RegexParser/issues"> <img src="https://img.shields.io/github/issues/Analogy-LogViewer/Analogy.LogViewer.RegexParser" img alt="Issues"/> </a> GitHub closed issues <a href="https://github.com/Analogy-LogViewer/Analogy.LogViewer.RegexParser/blob/master/LICENSE.md"> <img src="https://img.shields.io/github/license/Analogy-LogViewer/Analogy.LogViewer.RegexParser" img alt="License"/> </a> Nuget

</p>

Regular Expression Parser for simple text files

In this parser you need to define your custom regex to match you log format in the applcation settings:

Serilog Settings

with the correct regular expression you can parse you custom format. For example: in the screenshot this example log can be parsed:

$2020-04-24 13:18:23,207|1|INFO|logsource|My Manager App Starting...
$2020-04-24 13:28:24,380|1|WARN|files|file not found
$2020-04-24 13:48:27,193|2|INFO|AppBase|Loading done

Serilog Settings

the available tags to use for parsing are:

public enum AnalogyLogMessagePropertyName
{
 Date,
 ID,
 Text,
 Category,
 Source,
 Module,
 MethodName,
 FileName,
 User,
 LineNumber,
 ProcessId,
 Thread,
 Level,
 Class,
}

which corresponding to AnalogyLogMessage fields

Issues

How To Use

  1. Download the latest Analogy Log Viewer from the release section (.net framework or .net Core version).
  2. Download (or Compile) this project and put the compiled DLL in the same folder as the Analogy Log Viewer.