refactor log_resolver.rb to mock Logger