Skip to content
Dan Siegel edited this page Nov 17, 2018 · 1 revision

Prism Logging Plugin's

Prism's ILoggerFacade provides logging of all internal Prism errors, and a quick and easy way for your WPF, UWP, or Xamarin Forms app to introduce logging throughout your ViewModels and Services. The implementation of ILoggerFacade is really left to the developer to determine how you want to handle your logging. While this "Works", it is also a more than a decade old definition that doesn't match modern application logging demands. For this reason the Prism Logging Plugins introduce some new logging interfaces:

  • IAnalyticsService
    • adds void TrackEvent(string name, IDictionary<string, string> properties)
  • ICrashesService
    • adds void Report(Exception ex, IDictionary<string, string> properties)
  • ILogger (inherits from IAnalyticsService, ICrashesService, ILoggerFacade)
    • adds void Log(string message, IDictionary<string, string> properties)
    • has extensions for Debug, Info, Warn
Clone this wiki locally