I would like to create a simple macro that does what _INITIALIZE_EASYLOGGINGPP
does, but that accepts a configuration string like this one:
"*GLOBAL:\nFILENAME = my_app.log\nFORMAT = %datetime{%Y.%M.%d-%H.%m.%s.%g}, %level, %msg\n*INFO:\n ENABLED=false"
The macro would then replace:
_INITIALIZE_EASYLOGGINGPP
by
INITIALIZE_ELPP_WITH_CONFIG("myconfigstring")
Anyone has an idea how to do that?
You should create a function like this one :
then call :