Add logging as build dependency

During build a rake tasks (apipie) is run so we require logging during
build time.
Merge pull request #1693 from ares/feature/logging

Add logging as build dependency