microsoft / windows-container-tools

Collection of tools to improve the Windows Containers experience
MIT License
236 stars 66 forks source link

[BUG] Process monitor adds XML when format is custom #171

Open DmitrySenin opened 2 months ago

DmitrySenin commented 2 months ago

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

Configuration -Tool: Log Monitor -Version: 2.0.1-rc2