Fixed bug in 'IsEnabled' check. Was hardcoded to DebugLevel rather then using the log level provided in the parameter.