Use colors in log only for terminals #53
No reviewers
Labels
No labels
Compat/Breaking
EditorConfig
0.17.2
Kind
Bug
Kind
Chore
Kind
Documentation
Kind
Enhancement
Kind
Feature
Kind
Testing
Packaging
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
WIP
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
BaumiCoder/ecformat!53
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "enhancement/no-colors-log-to-file"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
User perspective
You redirect stdout or stderr of ecformat into a file (e.g., with
>>) or to another application (e.g., with|), you now get a nicer output. Before the changes from this Pull Request the control characters for coloring were included:And now, you get a clean output in such cases, without losing the colors in the output on the terminal:
Developer perspective
The problem was that the
simplelogcrate does not check for terminal output with itsAutooption (see issue). Therefore, ecformat has to check that for itself.