Use one logger per class, not one logger globally (as suggested by Kuba).