Logs not appearing in Azure portal for Function using Logback, but visible with ExecutionContext

abazine abdellatif 0 Reputation points
2024-10-19T00:25:06.0366667+00:00

I'm experiencing an issue with logging in Azure Functions (Java). When I use ExecutionContext.getLogger(), my logs appear in both the Azure portal and the log stream. However, when I use Logback for logging, I can see the logs in the log stream, but they do not appear in the Azure portal's logs.

Here’s a summary of my setup:

  • Azure Functions with Java runtime.
  • Logback is configured correctly, and I see the logs in the log stream.
  • Logs written using ExecutionContext.getLogger() are visible in both the log stream and Azure portal, but the same is not true for Logback logs.

Is there a specific configuration required to ensure Logback logs are also visible in the Azure portal? Any insights or suggestions would be greatly appreciated!

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
5,028 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.