Get more mileage from your console output by going beyond mere string logging - log entire introspectable objects, log multiple items in one call, and apply C-Style string substitution to make the console work for you.
Being pedantic but AFAIK %d stands for decimal not digit.