PowerDNS is written in C++, not Java. PowerDNS does not use Log4J.

However, you should always check where your logs go. It is possible that somewhere down the line (for example, in Elasticsearch) they do hit Log4J.

I wrote a blog post about this.