Decouple logging from implementation in Ruby.