I believe in order to have data in that table you need to use ILogger. Also log level needs to be configured as well.
These are already setup properly from the example taken from this Quickstart: Create a C# function in Azure from the command line documentation.
As I have mentioned, log stream displays the data, but logs were not consolidated into Log Analytics Workspace. Azure Functions logs FunctionAppLogs
table does not appear under LogManagement
tables in Log Analytics Workspace.
The generated host.json
file content is listed below.
{
"version": "2.0",
"logging": {
"applicationInsights": {
"samplingSettings": {
"isEnabled": true,
"excludedTypes": "Request"
}
}
}
}
I did try to use the below host.json
file content, but to no avail.
{
version": "2.0",
"logging": {
"fileLoggingMode": "always",
"logLevel": {
"default": "Trace",
},
"applicationInsights": {
"samplingSettings": {
"isEnabled": false
}
}
}
}