microsoft / azure-container-apps

Roadmap and issues for Azure Container Apps
MIT License
355 stars 27 forks source link

Feature Request: Enable multi-line logging #1126

Open prutsert opened 3 months ago

prutsert commented 3 months ago

Is your feature request related to a problem? Please describe.
When multiple lines of output are generated (for example, a stack trace when an error occurs), they all end up as single records in the _ContainerAppConsoleLogsCL Log Analytics table, with the same timestamp. Sorting these lines is impossible.

Describe the solution you'd like.
Implement the multi-line logging feature, that was introduced on AKS last year, see: https://techcommunity.microsoft.com/t5/azure-observability-blog/announcing-ga-multi-line-logging-in-azure-monitor-container/ba-p/3984289

Describe alternatives you've considered.
Adding an extra column to the _ContainerAppConsoleLogsCL with the line number, would also help when sorting, but the multi-line logging feature is more clear in keeping atomic log records together.

Additional context.
Announcing GA: Multi-Line Logging in Azure Monitor - Container Insights