How do I 

1. Send output of pipe to `STDOUT` 
and simultaneously
2. Filter output of pipe and write it to a file

I tried

```
cat file | tee | sed 's/abc/def/g' >> log.txt

```

I get the desired filtered output in log.txt, but nothing is sent to `STDOUT` by `tee`