I think that you copied and pasted these lines directly from the docs and ended up with spaces at the end of each line (and I see spaces at the end of each of your lines here). This confuses Log4j. Remove these extraneous spaces and you should be fine.
5 Likes