prints trace into Rails log directory