Use a logging interface instead of bare print