Skip to content

RossMMason/AppCenterLogger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AppCenter Logger

Build status

A Microsoft AppCenter logger provider implementation for Microsoft.Extensions.Logging.

Visual Studio App Center is the next generation of Xamarin Test Cloud, and includes all the functionality of Xamarin Test Cloud and more. This logger is intended to be used in Xamarin.Forms projects that make use of Microsoft.Extensions.Hosting to manage basic app functions like logging, DI, and configuration. See here for more information regarding .NET Generic Host.

This package uses dependency injection from Microsoft.Extensions.DependencyInjection to handle the logger injection. Here is a link where you can read more about Microsoft's DI.

To add a provider, call the provider's Add{provider name} extension method.

Example Usage

    var host = new HostBuilder()
        .ConfigureLogging((hostContext, logging) =>
        {
            logging.AddAppCenter(options => options.AppCenterIosSecret == "<Your AppCenter iOS Secret>");
        })

Above we use a Generic HostBuilder to add in our logger implementation and specify an iOS secret (obtained from AppCenter). Add least one iOS, Android, or UWP secret needs to be specified in the options.

Installation

You can add this library to your project using [NuGet][nuget].

Package Manager Console Run the following command in the “Package Manager Console”:

PM> Install-Package West.Extensions.Logging.AppCenter

Visual Studio Right click to your project in Visual Studio, choose “Manage NuGet Packages” and search for ‘West.Extensions.Logging.AppCenter’ and click ‘Install’. ([see NuGet Gallery][nuget-gallery].)

.NET Core Command Line Interface Run the following command from your favorite shell or terminal:

dotnet add package West.Extensions.Logging.AppCenter

About

AppCenter logger provider implementation for Microsoft.Extensions.Logging.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%