Skip to content

Add support for NO_COLOR env var #130

@ipatalas

Description

@ipatalas

Hey!

There is a slight inconsistency between different serilog console logging methods when it comes to support for NO_COLOR env variable.
See https://no-color.org/ for the reasoning.
Also there has been a PR last year to add the support for console sink here: https://github.com/serilog/serilog-sinks-console/pull/154/files
However it doesn't work when using ExpressionTemplate because it has its own theming implementation.
I think it makes sense to add this support here as well.

I am willing to make the changes and prepare a PR but wanted to discuss it first to make sure it won't get rejected for some reason.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions