question

Upvotes
Accepted
28 5 8 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-sdkema-apirrtelektron-message-apilogging
icon clock
10 |1500

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

Monitored by @Warat B.

1 Answer

· Write an 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 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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