Describe the bug
Log Monitor wraps log lines in XML if the format is custom
To Reproduce
Steps to reproduce the behavior: Run LogMonitor against a process logging something to stdout
Result:
<Log><Source>Process</Source><LogEntry><Logline>{\"timestamp\":\"2024-05-03T14:55:51.032Z\",\"level\":\"DEBUG\",\"class\":\"Microsoft.AspNetCore.Server.Kestrel.Connections\",\"message\":\"Connection id \\\"0HN3BFISO209V\\\" accepted.\"}</Logline></LogEntry></Log>
Expected behavior
if custom format is enabled then the output of the process should be logged as-is
Describe the bug Log Monitor wraps log lines in XML if the format is custom
To Reproduce Steps to reproduce the behavior: Run LogMonitor against a process logging something to stdout Result:
<Log><Source>Process</Source><LogEntry><Logline>{\"timestamp\":\"2024-05-03T14:55:51.032Z\",\"level\":\"DEBUG\",\"class\":\"Microsoft.AspNetCore.Server.Kestrel.Connections\",\"message\":\"Connection id \\\"0HN3BFISO209V\\\" accepted.\"}</Logline></LogEntry></Log>
Expected behavior if custom format is enabled then the output of the process should be logged as-is
Screenshots![image](https://github.com/microsoft/windows-container-tools/assets/16915947/c2b60086-33cc-436f-8de8-2c8114f01bb4)
Configuration -Tool: Log Monitor -Version: 2.0.1-rc2