meritlabs / libmeritminer

Library that can mine merit.
GNU General Public License v3.0
8 stars 2 forks source link

Colorize output using termcolor #15

Closed jostrander closed 6 years ago

jostrander commented 6 years ago

Hey team! I hope this is a welcomed change and that it isn't too much at once.

Due to having tried tracking error messages down, etc when the miner is running I did some cleanup work and added termcolor for colorized outputs.

I added red coloring to all std::cerr error messages, and made sure all errors are sent to the error stream. Also changed most informational messages to use the standard std::cout stream so that the two streams can be directed to different outputs, which makes it easy to filter out only errors.

I also colorized a few things that users may find important including stats, difficulty, stratum messages and other numeric information.

I've only compiled this on linux, without an nvidia device present, but here's an example of what to expect: image

jostrander commented 6 years ago

@mempko Any interest in this, should I rebase or not bother?

jostrander commented 6 years ago

Pushed up those changes you requested @Retsediv

Retsediv commented 6 years ago

Thank you, @jostrander ! Great job is done!