davmac314 / dinit

Service monitoring / "init" system
Apache License 2.0
582 stars 45 forks source link

dinit-log: Add text color #334

Closed TheNofis closed 3 weeks ago

TheNofis commented 3 months ago

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

davmac314 commented 3 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 3 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 weeks ago

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