kamcheungting-db opened a new pull request, #725:
URL: https://github.com/apache/iceberg-cpp/pull/725

   ## WhatThe application-facing logging API — macros over the process default 
logger. Block 4 of the 6-PR logging stack (base: logging-block3-cerr).
   
   Fixed-severity macros take a std::format string and arguments:
   ICEBERG_LOG_INFO("opened {} in {} ms", name, elapsed);
   ICEBERG_LOG_WARN("retrying {}/{}", attempt, max);
   ICEBERG_LOG_TRACE / _DEBUG / _INFO / _WARN / _ERROR / _CRITICAL. Each is 
cheap when it won't print:
     - Compile-time floor — ICEBERG_LOG_ACTIVE_LEVEL removes calls below the 
configured level from the binary entirely (if constexpr).
     - Runtime gate — a lock-free atomic level check short-circuits before 
arguments are evaluated.
     - Format string is validated at compile time; std::source_location is 
captured automatically.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to