Added better logging sample