log: fix preprocessor comparison against an enum value
log: fix preprocessor comparison against an enum value

Fix `#if (LOG_LOCAL_LEVEL >= ESP_LOG_INFO)` which is always false and
produces a warning with -Wundef.

Use same pattern to compare LOG_LOCAL_LEVEL with ESP_LOG_INFO as is used
in definition of `ESP_LOG_BUFFER_HEX_LEVEL` and
`ESP_LOG_BUFFER_CHAR_LEVEL`.

Also reformat existing definitions for better readability.

Closes https://github.com/espressif/esp-idf/issues/1526

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