Example #1
0
        public override void Register(IServiceCollection services)
        {
            AppCenter.Start
            (
                Constants.AppCenterToken,
                typeof(Analytics),
                typeof(Crashes)
                //typeof(Distribute)
            );

#if DEBUG
            Log.UseConsole();
            Log.UseDebug();
#endif
            var logger = new AppCenterLogger();
            Log.AddLogger(logger, true, true);
            services.AddSingleton <ILogger>(logger);
        }