/serilog-enrichers-memory

An enricher for Serilog which outputs memory usage

Primary LanguageC#Apache License 2.0Apache-2.0

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.