[TASK] Refactor logging-server, add tests