loggerfactory

App Engine - LoggerFactory Restricted Class Error When Using Firebase in Java

五迷三道 提交于 2019-12-11 15:13:05
问题 I'm creating a backend for my Android application using Google App Engine. I'm doing something very simple, which is just initialising my Firebase Admin SDK following instructions here - https://firebase.google.com/docs/admin/setup. When I do this and run, I get the following error: java.lang.NoClassDefFoundError: org.slf4j.LoggerFactory is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime

DI with ILogger in Azure webJob

痴心易碎 提交于 2019-12-11 05:49:45
问题 I have an azure webjob project created in .net framework 4.6. i am trying to implement dependency injection with ILogger and log the information in application insights. class Program { private static IConfigurationRoot configuration; // Please set the following connection strings in app.config for this WebJob to run: // AzureWebJobsDashboard and AzureWebJobsStorage public static void Main() { var config = new JobHostConfiguration(); if (config.IsDevelopment) { config.UseDevelopmentSettings()