Fixed formatting technique when using logging