I am using log4j syslog appender to redirect the logs to the solaris syslog.
However, I am facing issue in formatting. It is not able to interpretnew line characters and is printing \n as it is.
Ex: Following is getting written into the syslog file.
"[ExceptionList]\n [RecoverableException ('MQROOT')]\n File = '/build
/S700_P/src/DataFlowEngine/PluginInterface/ImbJniNode.cpp' (String)\n Line = '1258' (Integer)\n Function = 'ImbJni
I know in Linux (Ubuntu) we have option to escape the control characters by specifying below option in syslog config file.
Please let me know if we have similar option in Solaris? how to resolve this please help
You won't be able to do this with the syslogd on Solaris 10 or the default syslogd on Solaris 11, however if you install rsyslog on Solaris 11 (it's in the Solaris repository), you can take advantage of this sort of functionality, and even this exact option as rsyslog uses this exact config option.