Attach server logger to the appropriate stream (+simplify).