Hi,
I am trying to configure a Logger programmatically in the Enterprise Message API. But when I am trying to include date in EMA log message
it is still only showing Time not date.
Example of Log:
loggerMsg
TimeStamp: 06:50:59.970
ClientName: ChannelCallbackClient
Severity: Warning
Text: Received ChannelDownReconnecting event on channel Channel
Instance Name Consumer_1_1
RsslReactor 0x0x7fa6ac02f340
RsslChannel 0x0x7fa6ac02ba60
Error Id -1
Internal sysError 107
Error Location /local/jenkins/workspace/RTSDK_Core_DX1/OS/RH8-64/rcdev/source/rtsdk/Cpp-C/Eta/Impl/Reactor/rsslReactorWorker.c:3403
Error Text </local/jenkins/workspace/RTSDK_Core_DX1/OS/RH8-64/rcdev/source/rtsdk/Cpp-C/Eta/Impl/Transport/rsslSocketTransportImpl.c:6165> Error: 1002 ipcConnecting() client connect() failed. System errno: (107)
loggerMsgEnd
Code Snippet:
innerMap.addKeyAscii( "Logger_1", MapEntry::AddEnum, ElementList()
.addEnum( "LoggerType", 0 )
.addAscii( "FileName", m_config.query("emaLogFileName").getString().c_str() )
.addUInt("IncludeDateInLoggerOutput", 1) //Value 1 still does not include date in logger output.
.addUInt("NumberOfLogFiles", 20)
.addUInt("MaxLogFileSize", 100 * 1024 * 1024)
.addEnum( "LoggerSeverity", 1 ).complete() ).complete();
As per the document, IncludeDateInLoggerOutput value 1 should include date. But it is still outputting only Time as shown the log above.
Regards,
Manasendu