Configure dapr log level in Azure Container App - azure

How do I configure the Dapr log level in an Azure Container App? It defaults to info & I want to set it to debug.
Reference: Configure and view Dapr Logs

You need to enable Darp in Container App then you can config the log level there

Related

Azure Web Jobs unable to read configuration of Azure App Service

I am currently deploying a C# console app as a Continuous Azure Web Job to an Azure App Service and I am using the Azure Web Jobs SDK 3.X(https://learn.microsoft.com/en-us/azure/app-service/webjobs-sdk-how-to).
The Web Job successfully deploys to the Azure App Service but the status of the Web Job is "Pending Restart". When I check the logs, the error I see is that a configuration value is being read in as NULL. I am setting this value in the App Service's configuration/Application Settings page but it seems my Web Job is unable to read it. Do these settings need to be set during deploy? Or do I need to be setting these configuration values in a different location?
My issue was that my app thought that my environment was Develop and it was looking for the appsettings.Development.json file. Once I corrected that issue, it looks like I am reading in my app settings correctly.

Accessing log files inside docker container

I have a tomcat Docker image -- source
This image has a sample war file that logs some data in a tomcat folder -- in the instance of this image in tomcat/logs
I am deploying this image as a web app using Azure containers -- and that works great, but I was wondering if there was a way to access that tomcat/logs folder?
I can FTP to the web app but I cannot access to the files in the Docker container.
Is there a way to do it?
You first need to enable them. To enable application logging for Linux apps or custom containers in the Azure portal, navigate to your app and select App Service logs. In Application logging, select File System > In Quota (MB), specify the disk quota for the application logs > In Retention Period (Days), set the number of days the logs should be retained > When finished, select Save.
Then you can see container logs in your App Service > Monitoring > Log stream
You can use Kudu to view the logs -Linux/container apps:
https://.scm.azurewebsites.net/api/logs/docker
You may also leverage App Service diagnostics.
To access App Service diagnostics, navigate to your App Service app in the Azure portal> In the left navigation, click on Diagnose and solve problems – Checkout the tile for “Diagnostic Tools” and “Availability and Performance” > "Application Logs" title.

Is there any way of Accessing/ fetch application logs of AKS (Azure kubernetes Services) from outside or browser?

I have deployed a web application on Azure Kubernetes Service (AKS). I want to generate Application logs of deployed web application of cluster like Log folder. I want to access those logs from LOG folder through browser or any other solution which I can easily share with developers to access logs from their system as well.
You can use the logging options, cloud-native solutions like fluentD and you can push the logs from LOG folder to Elasticsearch or Azure logging solution and you can watch the logs into dashboard.
Fluentd : https://www.fluentd.org/
Check out more at : https://logz.io/blog/kubernetes-log-analysis/

Nodejs on Azure where is output of the console log

I deployed a nodejs web app on azure as an
App Service
How do i see the console.log from my application?
You can tail the log with the Azure CLI...
$ az webapp log tail --name <name of webapp> --resource-group <name of resource group>
More info here
I just followed Enable diagnostics logging to enable Application Logging (Filesystem), Application Logging (Blob) and found console.log and console.error would output logs under D:\home\LogFiles\Application\, you could use KUDU to view your log files or you could also access https://{your-app-name}.scm.azurewebsites.net/api/vfs/LogFiles/Application/index.html and check the stdout and stderr type as follows:
Moreover, as Azure Web App (Website) Logging - Tips and Tools mentioned about application logs for node.js as follows:
Setting application logs in the Azure portal
For node.js websites the way to write application logs is by writing to the console using console.log('message') and console.error('message') which goes to Information/Error level log entries. Currently the only supported target for the log files for node.js is the file system.
Other web site types like php and python are not supported for the application logs feature.
For logging into blob, you may leverage winston-azure-blob-transport for collecting the application logs from your Node.js web app into Azure Blob Storage.
You can open a Log Stream using the azure portal.

Azure Web App for containers CI with Azure Container Registry

I'm having an issue with Azure Container Registry CI with my Azure Web App for Containers. It seems that the web hook between them has broken.
I've tried turning the CI within the Docker settings on the Web App however this fails and also tried creating a web hook from the Azure Container Registry however it says my container registry isn't managed but doesn't give me the option to upgrade it to one.
Webhooks are not available in the classic SKU and you need to migrate for this. For CI you need to enable a webhook with the publishing creds which can call into the App service scm endpoint which can restart and repull.

Resources