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

Improve logging #335

Merged
merged 4 commits into from
Apr 1, 2024
Merged

Improve logging #335

merged 4 commits into from
Apr 1, 2024

Conversation

coleramos425
Copy link
Collaborator

@coleramos425 coleramos425 commented Mar 22, 2024

This PR extends the color introduced in the logging module to the rest of the log text. See an example below:

$ omniperf profile -n mix -V -- ./mixbench

image

You'll see the default loglevel INFO is colored white, which matches other output and helps draw attention to warnings/errors. I've also changed Omniperf behavior s.t. colored logging is always on. You'll notice DEBUG, ERROR, and WARNING are the only log levels that output their type to the terminal (i.e., DEBUG: <msg>).

@coleramos425 coleramos425 force-pushed the improve-logging branch 4 times, most recently from 395d835 to 00b5001 Compare April 1, 2024 16:56
Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: colramos-amd <colramos@amd.com>
Signed-off-by: colramos-amd <colramos@amd.com>
@coleramos425 coleramos425 merged commit 281a307 into dev Apr 1, 2024
7 of 9 checks passed
@coleramos425 coleramos425 deleted the improve-logging branch April 1, 2024 17:11
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

Successfully merging this pull request may close these issues.

None yet

1 participant