intergrating logging throughout application