question

Upvotes
Accepted
28 3 6 12

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.

elektronrefinitiv-realtimeelektron-sdkrrtema-apielektron-message-apilogging
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
4.4k 10 6 9

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.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea