Improve console logging output