Further simplify enable/disable logging conditions.