pedrohff / azure-logger

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Azure Logger Spring Boot Starter

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);
    }

About

License:MIT License


Languages

Language:Java 100.0%