add logging boiler plate