Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom color and prefix support for logging #43

Open
agilgur5 opened this issue Oct 10, 2023 · 0 comments
Open

Custom color and prefix support for logging #43

agilgur5 opened this issue Oct 10, 2023 · 0 comments

Comments

@agilgur5
Copy link

agilgur5 commented Oct 10, 2023

Having each service/task/background process have a custom color and prefix would be nice.

prefixes

Generally I'm fine with the default prefix of using the task name, but I think it's more commonly [task] rather than task: (the latter is what Kit currently does). Brackets are more obvious to me that it's a prefix as well, since they are not used in logs commonly (whereas colons sometimes are).

colors

Having each task log as a different color from each other is super useful for readability, IMO. A different color with good contrast by default would be great. (WCAG compliant colors are ideal, although this is a terminal, not a web interface, so WCAG does not quite apply, but the contrast semantics are still useful for accessibility).

task comparison for reference

Task lets you choose an "output mode" (group/interleaved/prefixed) and lets you customize the prefix per task. Colors can be globally configured and toggled with env vars, but doesn't seem like they can be customized per task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant