Skip to content

No Trace logging from App Service #695

@Xabin

Description

@Xabin

I'm having trouble getting TRACE logging from Logback to Application Insights when running my application on an Azure App Service.
Java version: 8
Spring Boot version: 1.5.13.RELEASE
Spring Boot starter version: 1.0.0-BETA
Logback version: 1.1.11

I'm using the default configuration of the Spring Boot starter. I have only configured a azure.application-insights.instrumentation-key.
I cannot reproduce this issue locally. Both when running the application from within Eclipse and from a packaged Spring Boot jar, I'm getting TRACE logs to my Application Insights instance.
When running on the Azure App Service I am getting both REQUEST and EXCEPTION logs, it is only TRACE from Logback that is missing.
The problem is actually only visible on one of our Azure environments. We have two staging environments and one for production. One of the staging environments and production is getting TRACE logs as expected. Each environment uses different Application Insights instances.
The Logback logfile produced on the filesystem on Azure contains the expected logging statements. There are no exceptions related to Application Insights.

How can I troubleshoot this issue further? I assume that the issue is related to the Spring Boot starter, but I don't know how to dig deeper.

Metadata

Metadata

Assignees

Labels

QuestionSpring Boot StarterSpring boot starter issues, feature asks and questions

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions