Contoso Fiber CAMS makes use of App Insights for logging. Take a look at the App Insights documentation for more information. Follow this guide to get started with Application Monitoring for Azure App Service and Java.
Add the following dependency to your pom.xml file:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
The Spring Boot Actuator provides production-ready features to help you monitor your application.
Add the following properties to your application.properties file:
management.endpoints.web.exposure.include=metrics,health,info
management.endpoint.health.show-details=when-authorized
management.endpoint.health.show-components=when-authorized
For more information, refer to the Spring Boot Actuator documentation.
Check out Simulate Patterns - Logs to see how to monitor the app with Application Insights.