Bitcoin Institute

[PULL] Improve debug logging

1 messages BitcoinTalk Jeff Garzik March 3, 2011 — March 3, 2011

URL: https://github.com/bitcoin/bitcoin/pull/90

This change does two things:

  • Timestamp each line in debug log, for easier problem tracking.
  • Close and re-open debug log every 2000 lines, to enable log rotation software to replace the log while bitcoin continues uninterrupted operation.

I’ve seen the request for log timestamping come from several people.  Log rotation is something I wanted for server operation.