covert log module to a service