Skip to content

Commit

Permalink
Use Prism.Plugin.Logging.Loggly LogglyOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam-- committed Jun 25, 2021
1 parent d9f987c commit c9a553a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 21 deletions.
12 changes: 5 additions & 7 deletions advanced-topics/Logging-Loggly/src/PrismSample/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
using PrismSample.ViewModels;
using PrismSample.Views;
using Xamarin.Forms;
using LogglyOptions = PrismSample.Logging.LogglyOptions;

namespace PrismSample
{
Expand Down Expand Up @@ -40,13 +39,12 @@ protected override void RegisterTypes(IContainerRegistry containerRegistry)

// Set this up as the initial logger. We'll replace these later.
containerRegistry.Register<ILogger, ConsoleLoggingService>();
containerRegistry.Register<ILogglyOptions, LogglyOptions>();

// TODO: Be sure to get your Loggly Consumer Token. Paste it here to avoid typing it...
//containerRegistry.RegisterInstance<ILogglyOptions>(new LogglyOptions
//{
// Token = "{Enter your Loggly Consumer Token Here...}"
//});
containerRegistry.RegisterInstance<ILogglyOptions>(new LogglyOptions
{
AppName = "Logging Demo",
Tags = new[] { "Prism", "Sample" },
});

}

Expand Down

This file was deleted.

0 comments on commit c9a553a

Please sign in to comment.