added log method to product_type.rb