Skip to content

serilog-contrib/serilog-enrichers-memory

Repository files navigation

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.