Use value comparison when checking log levels.

The passed in log level is not always one of the static instances provided. Compare against the intValue of the log Level to determine equality.