Share log instances across binary modules
masterWhen working with multiple binaries (EXE, DLL, SO, DYLIB), you can choose between local instances (one per module) or shared instances (all modules use the same instance).
Windows
- Shared: Use
PLOG_EXPORTin the providing module andPLOG_IMPORTin the consuming modules. - Local: Default behavior.
Linux/Unix
- Shared: Use
PLOG_GLOBAL. - Local: Use
PLOG_LOCAL. - Note: If no macro is specified, behavior depends on compiler visibility settings (e.g.,
-fvisibility).