set stdout to flush logs