updated logging example to include locations, fixed bug in location logging