The memory usage enricher for Serilog.
To use the enricher, first install the NuGet package:
Install-Package Serilog.Enrichers.MemoryThen 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.