Customizing server log formats

Product/components used and version/fix level:

Integration Server 10.15

Detailed explanation of the problem:

Changing server.log format become one liner

Question related to a free trial, or to a production (customer) instance?

Hello fellow developers, I wanted have a use case at my client to ingest the IS server.log to Elasticsearch, currently, when the IS print an exception to the server.log without debug.log it will produce multiple lines automatically, is it possible to make the exception to become one liner so it will be identified as the same exception on the elasticsearch?

Image when IS printing the exception to the log

Thank You