This project allows you to connect to Azure Monitor logger by simply adding the properties below:
azure-logger.enabled=true
azure-logger.sharedKey=mySharedKey
azure-logger.workspaceId=myWorkspaceId
spring.application.name=myAppName
spring.application.version=0.0.1-RELEASE
Then, you can send your logs to Azure by doing:
@Autowired
private AzureLogger azureLogger;
public void sendJsonToAzure(String json) {
azureLogger.pushLogsToAzure(json);
}