make logger global for buildpackage.py