I am trying to add custom logs in my c# asp dot net core web api. I am able to find the api calls logs in Azure portal -> application insights -> logs.
But i am not able to find the custom logs i am entering using below code. whats the place to search for them.
public async Task Invoke(HttpContext httpContext)
{
// First, get the incoming request
var request = await FormatRequest(httpContext.Request);
// TODO: Save log to chosen datastore
_logger.LogInformation('custommessage101');
// ------
}
In log analytics query editor i used below query but it didnt fetch anything. Is it even the right place(Azure portal -> application insights -> logs) i am looking at ?
requests | search "custommessage101"