log messages to console