Closed gregschmit closed 1 year ago
Right now the logging system will show the line number, but we could easily go scan that line or just add the line content to the Context
struct?
Right now the logging system will show the line number, but we could easily go scan that line or just add the line content to the
Context
struct?
aving the line number should be easy to read the line from the file again, or just clone the line into the struct.
You can assign me to this one and the MAKE one
I guess this one can be closed since merging #9
Re-opening because I didn't realize the line isn't actually printed out anywhere just stored in the struct. I also adjusted it to store the line in the struct while parsing, which while uses a little bit more memory, is much faster than re-reading the line during logging.
Perhaps use different colors for warn vs err? Probably should do colors only if a tty is detected.
I think
is-terminal
is the best current Rust solution for providingisatty
functionality cross-platform?