added comments to implement filtering on log streaming.