With current design static will be inited automatically at first use.
But you're right, it's better to move logging into RegExp.cpp