Hello @RTAYLI Oumaima ,
This is strange behavior.
My first feeling is that the Azure Function fails and exits with an uncaught exception. This can have a bad influence on logging too.
Have you enabled Application Insights? This gives a live stream of what is happening within your Azure Functions (execution times, exceptions, logs, etc.).
Please enable it here:
There, a button is offered:
Application Insights is not free, there is logic executed and data is stored. But it is essential for live insights about what is happening.
Meanwhile, put a try-catch on the highest level in your code...
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.