Refactoring LogService