My backend service is Dot Net Web API (V6). I am using table storage for maintain API logs, I am having a logging middleware which typically store the log in azure table storage when the API request is complete.
And this is the implementation
TableClient client = GetTableClient(connectionString, tableName);
if (createTableIfNotExists())
await client.CreateIfNotExistsAsync();
await client.AddEntityAsync(tableEntityDto);
In short, This will use the connection string to check whether the table already exists, or need to create one. Then it will insert the log obj in the table storage.
This is perfectly working as expected in my local. But when I hosted my api in Azure Web App, I could not able to see the logs generated.
I even tried to create a table name based on my pattern, Yet I couldn’t see the log object. Am I missing something? or any suggestion on how to tackle this issue?