Skip to content

Logging

Mattias Kindborg edited this page Dec 18, 2015 · 6 revisions

Normally there is no need to expose the internal log messages, but if the need emerges it is now possible using configuration of the class Logger in namespace MvvmDialogs.Logging.

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

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

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