Switch to the API for logging stuffs so the old one can finally be
retired