© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
2 replies
Fright

✅ How to flush NLog on application exit with MEL

Hi, I am using Microsoft.Extension.Logger (MEL) ILogger abstraction, and NLog as my provided implementation.

When I use an AsyncWrapper, the final log messages aren't written. I've read that it's important to flush async targets before ending the application. How can I flush nlog via the MEL abstraction?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Console Application On Exit (Win 11)
C#CC# / help
2y ago
❔ Setting Up NLog with DI
C#CC# / help
4y ago
[System.Commandline] how to exit on --help
C#CC# / help
3y ago