Is it possible to configure Logger in EMA to append to the existing file?

Hi,

We are using Elektron Message API C++ edition and have configured the EmaConfig.xml to log into a file. But the problem is that every time we run our consumer program a new log file is created post-fixed with ProcessId. Is it possible to configure the logger to not to create a new file every time and append to the existing one instead, otherwise we have to have a scheduled task to remove all unwanted log files periodically.

Thanks.

Best Answer

  • Hi @mojtaba.danai

    Elektron Message API always create a new log file, unfortunately.

    There is no configuration that can change this behavior. You have to modify OmmLoggerClient.cpp and recompile the EMA if you want to change this behavior.