Better printing of log statements