use dependency inject to give logs route access to logger without calling straight from Server
refactor how OutputStreams get closed and fix variable name in main