Skip to content

Logging

FantasticFiasco edited this page Oct 31, 2021 · 6 revisions

Normally there is no need to expose the internal log messages, but if there is a need for it the messages can be exposed by configuring the class Logger in namespace MvvmDialogs.Logging.

This sample shows how messages are logged using Trace.WriteLine.

Logger.Writer = message => Trace.WriteLine(message);

The decision to have no dependencies toward third-party logging frameworks like log4net or NLog was a deliberate one. Consumers of this library should not be force-fed with other dependencies.