When I’m coding, I like to use this snippet for adding an enhanced logging:

HINT: Watch your project’s log output by using tail -f /path/to/your/log.txt.