use bufferred io when logging