Open
Description
Feature Proposal Description
Current
At the moment logging with colors is enabled by default (enableColors=true
). If certain criteria are met the logger stream is set to NewNonColorable(...)
, and no color is used in the log output. One of these tests is to see if a TTY terminal is connected isatty.IsTerminal(os.Stdout.Fd())
but there are cases which do support colored output without being connected to a TTY terminal. Examples of these scenarios are:
- Docker output
- Kubernetes
Proposal
Either drop the terminal check or introduce a new config option forceColors
to enable colors either way.
If either one is accepted I will submit a PR
Alignment with Express API
N/A
HTTP RFC Standards Compliance
N/A
API Stability
N/A
Feature Examples
N/A
Checklist:
- I agree to follow Fiber's Code of Conduct.
- I have searched for existing issues that describe my proposal before opening this one.
- I understand that a proposal that does not meet these guidelines may be closed without explanation.