Logging into Azure setup¶
The Azure logger bundle package allows you to save logs from your Daipe project into Azure Application Insights which persists your project's logs in a queryable and visualizable way. That allows you to monitor your application's progress and health with ease.
Installation¶
poetry add azure-logger-bundle
Usage¶
Get the instrumentation key
In your project's src/[ROOT_MODULE]/_config/config.yaml
parameters:
azureloggerbundle:
enabled: True
app_insights:
instrumentation_key: xxxx-xxxx-xxxx-xxxx
or use an environment variable
instrumentation_key: "%env(MY_SECRET_ENV)%"