Skip to content

Represents a log file analyzer to help find issues in logs files for running applications.

License

Notifications You must be signed in to change notification settings

MohawkMEDIC/logfile-analyzer

Repository files navigation

logfile-analyzer

Represents a .NET Standard 2.0 log file analyzer

Installation

Install-Package LogFileAnalyzer -Version 1.0.0

Configuration

Add this to your Program.cs file

public static void Main(string[] args)
{
	// setup the log file analyzer
	var analyzer = new LogFileAnalyzer(Path.Combine(AppContext.BaseDirectory, "YourLogDirectory"), new List<string> { ".log" });
	
	// wire up the error event
	this.analyzer.ErrorDetected += (o, e) =>
	{
		Console.WriteLine($"Found error : {e.LogFileEntry}");
	};
	
	// start analyzing files
	this.analyzer.Analyze();
}

About

Represents a log file analyzer to help find issues in logs files for running applications.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages