It is possible to change Logger level of EMA, for example from LoggerSeverity::Success to LoggerSeverity::Warning, programmatically during execution?
Suppose that I have, when the EMA Consumer start, the logger configurated in the EmaConfig.xml as below:
Can be changed after the start?
Just to add to my colleague's comments above...
As you may be aware the OmmConsumer represents a session with the server and during the initalisation it performs login, establishes a connection and downloads dictionary etc.
This means that when you destroy the existing OmmConsumer before creating the new one, you will be logged out and disconnected etc.
Be aware of the above - if your intention behind changing the logger severity dynamically was for diagnostic purposes - as changing the LoggerSeverity using the above technique would mean essentially re-initializing your session with the server.
From my finding, the application needs to assign an instance of OMMConsumerConfig when creating an instance of OMMConsumer. The OMMConsumer doesn't provide an interface to access the configuration. Therefore, the application is unable to change the loaded configurations.
Therefore, if you need to change the configurations, you need to create a new instance of OMMConsumer with the new configurations.
However, this is a nice feature so you can submit this feedback to the product team via Get Support.