implements a method for standardizing debug output