Read through documentation, JMTE docs and ran a few searches - can’t seem to find an answer.
The standard template runs the following foreach to iterate through log entries: ${if backlog}${foreach backlog message}${message}${end}${else}<None>${end}
However, this will dump each log entry directly after the last (log1log2log3log4), I’d like to drop each one on a new line.
I read that I should be able to do something like ${foreach backlog message \r\n}. That doesn’t work (removes the \'s). So I tried ${foreach backlog message \\r\\n}. That just drops \r\n at the end of each log entry. Can anyone give me a way to import new lines into my template?
Additionally, it would be super handy if the “test” notification generated 3 dummy log entries to fully test the alerting without manually tripping events.
Will force a newline between each entry. I will probably keep this setting for now, although my preference would be not to have the dead space and instead just have each line terminate properly.