July 2019
Intermediate to advanced
502 pages
14h
English
This is the million dollar question. A simplistic approach is to log everything. You can never have too much data, and it's difficult to predict what data you'll need when trying to figure out what's wrong with your system. However, what does everything mean exactly? You can obviously go too far. For example, you can log every call to every little function in your code, including all the parameters, as well as the current state, or log the payload of every network call. Sometimes, there are security and regulatory restrictions that prevent you from logging certain data, like protected health information (PHI) and personally identifiable information (PII). You'll need to understand your system well enough to decide what ...