log: define LOG_LOCAL_LEVEL before using it, don't use type cast
log: define LOG_LOCAL_LEVEL before using it, don't use type cast

LOG_LOCAL_LEVEL is now used in a construct like:
 #if (LOG_LOCAL_LEVEL >= ESP_LOG_INFO)
Make sure that LOG_LOCAL_LEVEL is defined, and don't use a type cast in
its definition, because preprocessor can not parse that.

mashaoze/esp-idf,Hermiedapwdrman/esp-idf,www220/esp-idf,Hermiedapwdrman/esp-idf,espressif/esp-idf,www220/esp-idf,mashaoze/esp-idf,mashaoze/esp-idf,Hermiedapwdrman/esp-idf,armada-ai/esp-idf,espressif/esp-idf,espressif/esp-idf,www220/esp-idf,www220/esp-idf,Hermiedapwdrman/esp-idf,Hermiedapwdrman/esp-idf,armada-ai/esp-idf,armada-ai/esp-idf,www220/esp-idf,mashaoze/esp-idf,mashaoze/esp-idf,armada-ai/esp-idf,espressif/esp-idf