Skip to content

Files

Latest commit

c46c90c · May 29, 2024

History

History
31 lines (21 loc) · 1.31 KB

logging.md

File metadata and controls

31 lines (21 loc) · 1.31 KB

Logging

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.

Pom.xml changes

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.

Application Insights Configuration

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.

Application Insights

Check out Simulate Patterns - Logs to see how to monitor the app with Application Insights.