dotnet / dotnet/Scaffolding

Console logging features and issues

Open
#2,974 0 comments 0 reactions 2 assignees Claimed by @deepchoudhery View on GitHub
area-dotnet-scaffolding
Dominant language
C#
Stars
818
Forks
260
Avg merge
1d 8h
Merged PRs (30d)
10

Description

There are gaps in the current console logging for the dotnet-scaffold ecosystem. Compiling a simple list of items.
- dotnet-scaffold output being all colorized green due to all redirected console output is stdout. Need to differentiate the different ILogger.LogLevels (Error, Warn etc.) and colorize them accordingly.
- Currently no way to write logs to disk at the moment (dumping logs, traces etc.)
- There is no way to consolidate logs on disk between tools (dotnet-scaffold-aspire, dotnet-scaffold-aspnet and more soon)
- There is no trace logging which would be super helpful in debugging (MSBuild registration, more detailed scaffolder information). Nothing being logged as trace (likely using `ILogger.LogTrace`) and no way to enable trace logging (environment var or through a commandline parameter)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.