Enable inlining of Logger::enabled().

This should help with performance of previous commit.