makes it possible to have a mixed mode between buffered and non-buffered and to flush to the output stream only when a buffer to print is higher than maxbuffersize if it is set