rspecq
rspecq copied to clipboard
Use a proper logger for rspecq-level messages
Currently we use plain puts
inside Worker
and Reporter
to print various rspecq-level events like errors or warnings. However this mixes the output from that generated by RSpec and makes it hard to differentiate between the two, merely by glancing at the terminal. Ideally we should let RSpec print to stdout (the default) and we should use stderr for diagnostic messages originating from rspecq itself.
We should also use an actual logger and the appropriate levels for such cases, for a more detailed output. Ruby's Logger
from stdlib should be sufficient.