Add option to disable logging globally

Add IsEnabled flag to LoggingConfiguration.
Check IsEnabled flag in LogInternal() and return immediately if false.
This enables globally disabling logging, for example for Release configuration builds.