modify liblog for buffering type