Fix logging instantiation.