Refactor loggerservice
Add loggerservice