SergiusTheBest / plog

Portable, simple and extensible C++ logging library
MIT License
2.19k stars 385 forks source link

Logging of std containers with custom data types #248

Open SlashBack626 opened 1 year ago

SlashBack626 commented 1 year ago

Hi,

I recently started playing around with plog. I was wondering if it is possible to log standard container like vectors holding custom data types. Currently, my custom operator overloads are ignored (but I don't know if this is a cpp limitation).

Can this functionality be integrated into plog?

ps: I noticed that when moving the template function for std containers from Record.h to my own header it works.

I have created a small example here (Notice the changes in plog/Record.h and data.h)

SergiusTheBest commented 1 year ago

Hi @SlashBack626 ,

Thank you for the raised issue and PR, I'll check them soon.