GithubHelp home page GithubHelp logo

jamiewest / appcenterlogger Goto Github PK

View Code? Open in Web Editor NEW
11.0 7.0 6.0 14 KB

AppCenter logger provider implementation for Microsoft.Extensions.Logging.

License: MIT License

C# 100.00%
appcenter xamarin-forms microsoft-extensions-logging logging dependency-injection

appcenterlogger's Introduction

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

appcenterlogger's People

Contributors

jamiewest avatar rmmason avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.