I'm trying to write a generic method to iterate over a case class's fields :
case class PriceMove(price: Double, delta: Double)
def log(pm : PriceMove) { info("price -> " + price + " delta -> " + delta)}
I need to make log able to handle any case class. 
What needs to be the argument type for log to handle case classes only and the actual generic field iteration code? 
 
     
     
    