Skip to content

Colorization of console log output #4662

@devlead

Description

@devlead

Discussed in https://github.com/orgs/cake-build/discussions/4661

Originally posted by alphaleonis November 19, 2025
We just started looking into migrating from Nuke to Cake.SDK, but I am confused as to why colorization of custom logs doesn't work unless using a fomatted string. For example:

    Error("Error: {0}", "An error"); // Appears all in red
    Error("Error: An error");  // Appears with default color
    Warning("Warn: {0}", "An error"); // Appears in yellow
    Warning("Error: An error"); // Appears in default color  

I'm probably missing something obvious here, but I would like to have all my error logs appear in red.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions