better logging examples