sirupsen / logrus

Structured, pluggable logging for Go.
MIT License
24.8k stars 2.27k forks source link

Make the no tty formatter configurable #1308

Closed firefart closed 2 years ago

firefart commented 2 years ago

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.

github-actions[bot] commented 2 years ago

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

firefart commented 2 years ago

This issue is still relevant

github-actions[bot] commented 2 years ago

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

github-actions[bot] commented 2 years ago

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