Log just the right amount of data.
Each logging and monitoring setup environment should be unique whether development, staging/QA, UAT, or production. There is no benefit to the oversaturation of production logs with diagnostics messages. However, in a development environment, it may be perfectly acceptable.
Select the ideal diagnostic level for each environment.
Focus on the events and information being logged.
Be cautious of exposing sensitive information.
Book
The Secret Source: The culture, skills, and process to make great digital products
This book was written to help our team and clients build mission-critical applications faster. The book offers a transparent look at the full product lifecycle at Devbridge. It details our methodology, tools, and best practices that enable our teams to ship product fast.
Read the book