Global log-disabling option

Check IsEnabled in LogInternal() before doing anything else.