Fixed loggingLevel detection

```defined()``` and ```constant()``` are namespace sensitive