Improve displaying log messages