Enhance log configurator to avoid ClassNotFoundException