Fix logging config, add log statements