emilk / loguru

A lightweight C++ logging library
The Unlicense
1.76k stars 256 forks source link

[Question] Can be used from inside dll/so libraries? #222

Open Danixu opened 2 years ago

Danixu commented 2 years ago

Hello,

I am creating a program which will use .so and .dll libraries to provide more features and formats. Those libraries can be built separately without have the original program source code so the program will not know anything about the library beyond the C API to talk.

My question is if there is any way to log inside those DLL libraries using the main program logger with this logger library. I see that there is no object to pass, so I suppose that is not able, but you know the library better than me.

Best regards,