Install no-op logging handler only on 2.7 <= Python < 3.2.