norm icon indicating copy to clipboard operation
norm copied to clipboard

PLOG conflict with protoDebug

Open Ry-Kode opened this issue 5 months ago • 0 comments

Hello,

Thank you for sharing your excellent work!

I ran into a conflict when including the NORM library (actually the protolib submodule) into my own project.

Both the NORM library (via protoDebug.h) and my project are using PLOG for logging. Both are defining logging macros, such as PLOG_INFO, but they use different log levels (e.g., ProtoDebugLevel vs. plog::Severity). This results in a type mismatch when the PLOG_INFO macro is expanded.

My suggestion would be to wrap the macros in a distinct namespace. This way, when you include both PLOG and protoDebug, you can explicitly refer to which logging system you are using.

Ry-Kode avatar Sep 14 '24 17:09 Ry-Kode