wrap all logging in NX.app.Loader with <if debug>