refactored logging system to be distributed and actor-based