feat: support specify log color#1529
Conversation
Signed-off-by: MrCroxx <[email protected]>
Co-authored-by: Sven-Hendrik Haase <[email protected]>
Signed-off-by: MrCroxx <[email protected]>
|
I still get colors because log entries aren't the only things that is colored. There's also |
Hi. I'm afraid I don't get it clearly. The code path with |
|
Yes, what I'm saying is that users passing in |
Oh, I see. Let me handle it. |
|
Do you want to pick this up and finish it? |
Signed-off-by: MrCroxx <[email protected]>
Sure. Sorry for the late response. The new Github homepage make me forget this PR. |
Signed-off-by: MrCroxx <[email protected]>
|
Done. PTAL |
|
Thanks! |
As title.
Introduce new arg
--log-colorwith possible values: "auto", "always", "never" to specify log output color.It is useful for:
miniserve -v --log-color always ... | tee log.txt