Logs are thrown into code, just like comments. Comments doesn't add much value, is subtle to the code. But logs can potentially add value, however it clutters the code a lot.
Programming books or just books on the topic of developing software, are a great source of inspiration. If you’re a software developer or you work at a software company, maybe this reading
Code Documentation is dreaded by most programmers, and people even question its value. What good is it to have a separate document that describes what the code does, when you can just look