sirupsen / logrus

Structured, pluggable logging for Go.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make the no tty formatter configurable

firefart opened this issue · comments

It would be nice to have the default fallback formatter when "no TTY is present" configurable. Like log.SetNoTTYFormatter(&log.JSONFormatter{}).

Currently it defaults to TextFormatter but in my case I would like to save it automatically as a JSON when being redirected.

This issue is stale because it has been open for 30 days with no activity.

This issue is still relevant

This issue is stale because it has been open for 30 days with no activity.

This issue was closed because it has been inactive for 14 days since being marked as stale.