Fixed loggingLevel detection

defined() and constant() are namespace sensitive
Merge pull request #10 from snc/namespace-5.3

Fixed loggingLevel detection