Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 852 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 852 Bytes

Serilog.Enrichers.Memory

The memory usage enricher for Serilog.

Build status NuGet Version

Documentation

To use the enricher, first install the NuGet package:

Install-Package Serilog.Enrichers.Memory

Then enrich your logging configuration:

new LoggerConfiguration()
    .Enrich.WithMemoryUsage();

And finally utilise the token in your logging template:

var template = "{MemoryUsage}";

Copyright © 2017 Josh Schreuder - Provided under the Apache License, Version 2.0.