per class logging for ruby