Harry Shelman 1 year ago • updated by j.verdurmen 2 months ago 6

WPF is the only common .NET technology that has no NLog targets.

Under review

Thanks for sharing the idea!

Do you mean https://github.com/NLog/NLog.Windows.Forms ?

That one is for WinForms, WPF has its own RichTextBox and other common text controls.

I think it would be very useful to have those as WPF is the way to go for C# desktop apps for a long time now instead of WinForms. I am really surprised NLog doesn't support any WPF targets already, quick Google search shows people need it.

Thanks for the feedback. At least the name of NLog.Windows.Forms isn't wrong ;)

I like the idea :) I'm not sure if we have WPF experience in the NLog team. I expected adding some basic support is done if a few lines. Are you interested in creating a prototype? We can help in how to build custom targets of course.

I am afraid I am not a WPF expert myself, we've just recently started working on a project where we decided to use WPF for the first time. I wanted to use NLog to log some info to the UI as we are used to, but then I saw there are no targets for WPF controls.

There is already some history with WPF RichTextBox https://nlog.codeplex.com/workitem/6272, there is even some NuGet package https://www.nuget.org/packages/NLog.Wpf.RichTextBox/, but not sure if these solutions still work.


If someone like to work on this, please do.

This is not planned by us.