You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran dotnet new webapi to generate a new webapi and added a log statement for testing:
private readonly ILogger<WeatherForecastController> _logger;
public WeatherForecastController(ILogger<WeatherForecastController> logger)
{
_logger = logger;
}
[HttpGet]
public IEnumerable<WeatherForecast> Get()
{
_logger.LogError("TESTING");
The statement will log just fine if I run the webapi using dotnet run, but it will not write anything to the logs if I run func start host and also will not log anything when I push the function app up to azure.
The text was updated successfully, but these errors were encountered:
I ran
dotnet new webapi
to generate a new webapi and added a log statement for testing:The statement will log just fine if I run the webapi using
dotnet run
, but it will not write anything to the logs if I runfunc start host
and also will not log anything when I push the function app up to azure.The text was updated successfully, but these errors were encountered: