Fix log append api bug, and refactor html filter api (adding more api signatures)