Modified, functional form, skipping the buffer and using the file system write buffer
somewhat working version of the genlog filter