Skip to content

Commit

Permalink
Mention logrotate
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Oct 17, 2023
1 parent 2462719 commit e9056fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/logging-best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Therefore let's rely on proven tools as much as possible and do only the absolut

A simple but powerful approach is to log to unbuffered [standard out](https://en.wikipedia.org/wiki/Standard_out#Standard_output_.28stdout.29
) and let other tools take care of the rest.
That can be your terminal window while developing, it can be [*systemd*](https://en.wikipedia.org/wiki/Systemd) redirecting your log entries to [*syslogd*](https://en.wikipedia.org/wiki/Syslogd), or your [cluster manager](https://kubernetes.io/docs/concepts/cluster-administration/logging/).
That can be your terminal window while developing, it can be [*systemd*](https://en.wikipedia.org/wiki/Systemd) redirecting your log entries to [*syslogd*](https://en.wikipedia.org/wiki/Syslogd) and rotate them using [*logrotate*](https://github.com/logrotate/logrotate), or your [cluster manager](https://kubernetes.io/docs/concepts/cluster-administration/logging/).
It doesn't matter where or how your application is running, it just works.

This is why the popular [*Twelve-Factor App* methodology](https://12factor.net/logs) suggests just that.
Expand Down

0 comments on commit e9056fe

Please # to comment.