Refactor log service.
Update logger use in the server.