davmac314 / dinit

Service monitoring / "init" system
Apache License 2.0
620 stars 49 forks source link

dinit-log: Add text color #334

Closed TheNofis closed 3 months ago

TheNofis commented 6 months ago

I just added a couple of lines so that the logging was colored :D

davmac314 commented 6 months ago

Thanks for opening a PR. To accept this I would require a few changes: since the color sequences are not universal to every terminal, and since some people wouldn't want them anyway, there should be a (documented) way to turn them off (i.e. a command-line argument). Additionally I would like the escape sequences to named macros or constants rather than embed them directly in the message strings.

davmac314 commented 5 months ago

Other than cleaning up the PR so that it doesn't include a bunch of built files (as Mobin pointed out):

davmac314 commented 3 months ago

Looks like this has gone stale, so I'll close for now; feel free to re-open in future.