added a logging function to service and modified log texts