Don't log anything before logging is setup in examples
# What does this PR do?

As flagged out by #12090, the examples contain some logs before the logging is properly set up. This PR fixes that.

Fixes #12090