Log class modify and add logging to service