Add logrus logging
Closes #130 (closed).
Adds support for logrus structured logging and migrates the existing logging and debugging statements to logrus.
Has the following behaviour:
- When run in a terminal with a tty: will log to
stdout
with developer-friendly colours and alignment - When run in a terminal without a tty: will output to
stdout
in a easy-to-parse, one-line-per-log format - When configured via
config.toml
, will output tostdout
in a JSON format, for easy ingestion into Logstash