ROCm / rocprofiler-compute

Advanced Profiling and Analytics for AMD Hardware
https://rocm.docs.amd.com/projects/omniperf/en/latest/
MIT License
135 stars 49 forks source link

Improve logging #335

Closed coleramos425 closed 7 months ago

coleramos425 commented 7 months ago

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: \).