How to find/ monitor logs in App Insights?

Aron Kovacs 41 Reputation points
2021-10-12T09:44:05.853+00:00

We try to find logs in App Insights, but are unable to. The following pages have not been helpful: https://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net-trace-logs https://learn.microsoft.com/en-us/azure/azure-monitor/app/diagnostic-search An example log entry we are looking for is logged (using ILogger<T>) as: _logger.LogInformation(new EventId(15, "GetGraphResponse"), response); We are unable to find 'information' in traces, nor our event id. Also, when we try to connect to the streaming log, no custom log message is appearing: ![139678-microsoft-azure-vivaldi.png][1] Now, as far as we now, ILogger<T> is representing a log category, which may be the issue here. However, for some reason using ILogger -without generic type- resolves to null. So how can we see our log entry? [1]: /api/attachments/139678-microsoft-azure-vivaldi.png?platform=QnA

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,911 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2021-10-12T16:38:23.467+00:00

    anonymous user When using custom loggers, you need to set the log level in host.json as shown in ILogger section of the dependency injection doc. Specifically, this section of the file

    139935-image.png

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.