I am getting a set of logs from one application (in a txt file) and I have to separate, process and then send them one by one to another app. The format of the logs that I'm receiving is like this:
2019-05-07 10:46:49,532 [6] INFO App1 - Message1
2019-05-07 10:46:51,532 [6] INFO App1 - Message2
And I have to send them one by one as a JSON object in this format:
{
"timestamp":"2018-07-12T17:53:44.613+05:30",
"senderApp":"ThisApp",
"senderUser":"Mike",
"logLevel":"Error",
"logMessage":"This is the error we received!"
}
Is there any library that could help me? Thanks in advance!