Skip to content

Add logrus logging

Andrew Newdigate requested to merge feature/logrus into master

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 to stdout in a JSON format, for easy ingestion into Logstash

Merge request reports