Added logging support to service