DEV Community

Discussion on: Coding practices your future self will love you for

Collapse
 
tomavelev profile image
Toma

When debugging via logs, log levels are great feature to be using. Too much design patterns without past personal experience of it is also an anti pattern. Loved the idea of ci/cd as early as minimal MVP is implemented. So when adding new features, you could verify /tests/build/deployment is still working.

Collapse
 
mohanarpit profile image
Arpit Mohan

Log levels are god-send. God bless the person who thought of this first. :)

In production, there have been cases where we enabled debug logs for a brief period just to get more information on a bug. Tuning the log levels also affects performance in a big way (especially in a high throughput scenario).