improved output of log messages