add feature to control buffered log, include filter and buffer cap

done.