Compare Kind references before checking log levels

Assuming reference comparisons are much quicker than checking
likely-nested logger levels, perform the former first.

Also, since the reference can match only one of the instances,
use "else if" to short-circuit the search.
Merge pull request #252 from dharkness/patch-1

# By David Harkness
* patch-1:
  Compare Kind references before checking log levels