7

Is it possible to let supervisord add timestamps to the outputs in stdout_logfile and stderr_logfile? I couldn't find it anything about that in the documentation.

Norbert
  • 171
  • 1
  • 3

1 Answers1

0

My $0.02. If you are running in Docker, then let the docker container capture stdin/stdout and capture timestamps that way. If not, send output to syslog and let either systemd or rsyslog append their timetstamps. Unless your system is heavily loaded (and rsyslog/systemd cannot keep up), this should get you what you need.

See this answer for docker.

See the official documentation for rsyslogd and search for "precision". For some vendors (RedHat, Ubuntu) this may already be enabled by default.

See this nice tutorial on using journalctl with systemd.

Otheus
  • 432
  • 3
  • 12
  • 2
    I think the lack of support for timestamps and journal are a dealbreaker for a lot of people including me. Systemd does all that out of the box. The only downside of using systemd is that you need to code in `sd_notify` heartbeat on the client-side to use the watchdog feature. – Fred Flint Mar 31 '21 at 15:43