2 ms·
You shouldn't log as many things as you can. You should only log useful things, when they're needed, along with context. Otherwise you have too much noise and n
by 0xbadcafebee 4y ago
You shouldn't log as many things as you can. You should only log useful things, when they're needed, along with context. Otherwise you have too much noise and not enough signal, and it's easier to leak PII.
Applications should have a logging interface that can identify and conceal sensitive information, and data stored in the app/database/etc should have a type that can be denoted as sensitive. You will eventually also want to reduce the amount of logs you generate, so it's useful to have logging levels the same way operating systems do.