Log4Net adapter for Metrics.Net
C# Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.nuget
Publishing
Samples/Metrics.Log4Net.Console
Src
.gitattributes
.gitignore
CHANGELOG.md
LICENSE
Metrics.Log4Net.sln
NuGet.Config
README.md
SharedAssemblyInfo.cs
build.bat
create-nuget.bat

README.md

Metrics.Log4Net Adapter

Log4Net adapter for Metrics.Net library.

Build status

Intro

This is an adapter for Iulian Margarintescu's Metrics.Net library.

Main Features

  • Rolling CSV File Support
  • Text File Reporting
  • Custom Log4Net Adapters can be plugged in

Supported runtimes: .Net 4.5

Quick Usage Sample

            Metric.Config
                .WithReporting(config => config
                    .WithMetricsLog4NetConfiguration(new MetricsLog4NetConfiguration()
                        .WithRegionalCsvDelimiter()
                        .SetLogDirectory(@".\metrics\")
                        .UseDefaultConfiguration()
                        )
                    .WithLog4NetCsvReports(TimeSpan.FromSeconds(5))
                );

Download

NuGet package - Metrics.Log4Net

Documentation

Look at wiki pages

TODO

  • [done] Deploy to NuGet
  • Write tests for text file reporter
  • Write more documentation

Written with StackEdit.