unifying logging and making the gunicorn app optional