As CRegexp already depends on the logger, you could just do CRegExp::CheckUTF8() or some such which does the logging for you.

The main reason you need to call these here is to init the statics rather than the logging (the logging is just a bonus).