Differences between revisions 1 and 2
Revision 1 as of 2018-12-07 00:02:54
Size: 537
Editor: SamatJain
Comment:
Revision 2 as of 2021-10-07 18:32:40
Size: 676
Editor: SamatJain
Comment:
Deletions are marked like this. Additions are marked like this.
Line 8: Line 8:

[[https://itnext.io/logging-like-a-pro-8cc6ad09e415|Logging Like a Pro]]: Theories and best practices for effective application logging

Logging best practices from Splunk, useful for application developers.

  • Use clear key-value pairs, with "" for strings with spaces. Commas ok, avoid periods.
  • Time-stamps w/ 4-digit year and time zones.
  • Unique IDs (transaction IDs). Ideally, use the same transaction ID across an entire system so you can see all the events that happened during that transaction.

Write Logs for Machines, use JSON

Logging Like a Pro: Theories and best practices for effective application logging

SamatsWiki: LoggingBestPractices (last edited 2021-10-07 18:32:40 by SamatJain)