Azure / Azure/Azure-Functions

Logging Colors in Terminal

Open
#2,604 0 comments 1 reaction 0 assignees View on GitHub
feature
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

With the dotnet func.exe Standard Azure Functions logs for developers (console/terminal) are black and white making it really difficult to see and separate debug, information, errors and warnings.

Have tried various external libraries (like Serilog) to no avail.

The terminal supports colors but everything logged in the various functions is black/white.

```
Azure Functions Core Tools
Core Tools Version: 4.0.1 Commit hash: N/A +421f0144b42047aa289ce691dc6db4fc8b6143e6 (64-bit)
Function Runtime Version: 4.834.3.22875
```

Example - here we have a mix of Information and Debug logs:

![Image](https://github.com/user-attachments/assets/2d686b3a-86f5-4f6a-bba6-e675e31d8470)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the black-and-white output with Azure Functions Core Tools 4.0.1 in a color-capable terminal, using the Information and Debug log mix shown in the issue. Identify the Core Tools logging entry point and verify that completed output distinguishes debug, information, warning, and error messages with terminal colors.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
cli, observability
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.