Use best practices for logging and debugging