question

Upvotes
Accepted
1 2 5 5

how to remove emaLog_*.log file

how to not create the log file
elektronrefinitiv-realtimeelektron-sdkema-apirrtelektron-message-apic++
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.

Hello @kage.wu

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?

If yes, please click the 'Accept' text next to the reply. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.

Thanks,

AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

1 Answer

· Write an Answer
Upvotes
Accepted
7.6k 15 6 9

@kage.wu


EMA’s globally default behavior is to log its messages at a LoggerSeverity level of Success to a file named emaLog_<pid>.log (where pid is the process ID). You can manually change the LoggerSeverity and the logger type by using EmaConfig.xml.


If the does not use EmaConfig file, you have to copy EmaConfig.xml from "<EMA Install Directory>\Cpp-C\Ema\Examples" to your running directory or put it to the same folder as your binary.


Default consumer from the config file is Consumer_1, and it uses Logger_1, so you have to modify section Logger_1 to log message to Stdout instead and set the LoggerServerity to LoggerSeverity::NoLogMsg like below config


<Logger>

<Name value="Logger_1"/>

<LoggerType value="LoggerType::Stdout"/>

<LoggerSeverity value="LoggerSeverity::NoLogMsg"/>

</Logger>


Please find more details about the configuration from EMA C++ Configuraiton guide (EMACPP_ConfigGuide.pdf). You can also find EMA default behaviors/config from section 2.3 Default Behaviors.


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.