AnalyticsMonitorSettings LoggingInterface Property .NET Progress Telerik Platform Analytics Monitor Documentation, API Reference, Online Help | WPF, Silverlight, WinForms, Windows Phone Application Analytics
The logging interface used for exposing internal messages

Namespace: EQATEC.Analytics.Monitor
Assembly: EQATEC.Analytics.Monitor (in EQATEC.Analytics.Monitor.dll) Version: 3.2.144.0 (3.2.144)
Syntax

public ILogAnalyticsMonitor LoggingInterface { get; set; }

Implements

IAnalyticsMonitorSettings LoggingInterface
Remarks

You can provide your own implementation of the ILogAnalyticsMonitor interface in order to receive the internal logging messages from constructed monitors
Examples

This sample shows how to use the logging interface.
class MyClass 
{
  static void Main() 
  {
    //Creating AnalyticsMonitorSettings
    AnalyticsMonitorSettings settings = new AnalyticsMonitorSettings("YOUR_PRODUCT_KEY_HERE");
    settings.LoggingInterface = new MyLogClass();

    //Creating IAnalyticsMonitor
    IAnalyticsMonitor monitor = AnalyticsMonitorFactory.Create(settings);

    //Start Analytics monitor
    monitor.Start();

    /*Your program here....*/ 

    //Stop Analytics monitor
    monitor.Stop();
  }
}
class MyLogClass : ILogAnalyticsMonitor
{
  public void LogMessage(string message)
  {
    Console.WriteLine("Log: " + message);
  }

  public void LogError(string errorMessage)
  {
    Console.WriteLine("Error: " + errorMessage);
  }
}
See Also