flush log messages to stdout immediately