Further Reading¶
Everything I write on logging is going to be here:
Best Practices¶
Many of these are logback specific, but still good overall.
- 9 Logging Best Practices Based on Hands-on Experience
- Woofer: logging in (best) practices: Spring Boot
- A whole product concern logging implementation
- There is more to logging than meets the eye
- Monitoring demystified: A guide for logging, tracing, metrics
- Application-Level Logging Best Practices
Stack Overflow has a couple of good tips on SLF4J and Logging:
- When to use the different log levels
- Why does the TRACE level exist, and when should I use it rather than DEBUG?
- Best practices for using Markers in SLF4J/Logback
- Stackoverflow: Logging best practices in multi-node environment
Level Up Logs¶
Alberto Navarro has a great series
- Introduction (Everyone)
- JSON as logs format (Everyone)
- Logging best practices with Logback (Targetting Java DEVs)
- Logging cutting-edge practices (Targetting Java DEVs)
- Contract first log generator (Targetting Java DEVs)
- ElasticSearch VRR Estimation Strategy (Targetting OPS)
- VRR Java + Logback configuration (Targetting OPS)
- VRR FileBeat configuration (Targetting OPS)
- VRR Logstash configuration and Index templates (Targetting OPS)
- VRR Curator configuration (Targetting OPS)
- Logstash Grok, JSON Filter and JSON Input performance comparison (Targetting OPS)
Logging Anti Patterns¶
Logging Anti-Patterns by Rolf Engelhard:
Clean Code, clean logs¶
Tomasz Nurkiewicz has a great series on logging:
- Clean code, clean logs: use appropriate tools (1/10)
- Clean code, clean logs: logging levels are there for you (2/10)
- Clean code, clean logs: do you know what you are logging? (3/10)
- Clean code, clean logs: avoid side effects (4/10)
- Clean code, clean logs: concise and descriptive (5/10)
- Clean code, clean logs: tune your pattern (6/10)
- Clean code, clean logs: log method arguments and return values (7/10)
- Clean code, clean logs: watch out for external systems (8/10)
- Clean code, clean logs: log exceptions properly (9/10)
- Clean code, clean logs: easy to read, easy to parse (10/10)
- Condensed 10 Tips on javacodegeeks
JSON Logging¶
Maple¶
Eliot¶
TreeLog¶
Bunyan¶
Bunyan stands out for a number of innovations: ring buffers and JSON specifically.
- Bunyan
- Comparison of Winston and Bunyan
- Service logging in JSON with Bunyan
- Bunyan Logging in Production at Joyent