print out log messages