Describe the bug
When a wrapped process outputs a log line longer than ~4000 characters, LogMonitor crashes the wrapped process instead of handling the line gracefully.
To Reproduce
Steps to reproduce the behavior:
-
Create a Windows container and install LogMonitor
-
Wrap a process using:
SHELL ["C:\\LogMonitor\\LogMonitor.exe", "cmd", "/S", "/C"]
-
Inside the process, output a long line (e.g.):
Write-Output ("A" * 5000)
-
Observe: LogMonitor crashes and the container exits
Expected behavior
LogMonitor should handle long log lines safely — either truncating, splitting, or forwarding them — without crashing the wrapped process.
Screenshots
N/A — reproducible via script
Configuration
Additional context
No visible error or stack trace. Likely caused by buffer/encoding limits when forwarding stdout. High impact for any apps producing verbose or dynamic logs.
This line is my prime suspect and if you know cpp maybe it is obvious.
Describe the bug
When a wrapped process outputs a log line longer than ~4000 characters, LogMonitor crashes the wrapped process instead of handling the line gracefully.
To Reproduce
Steps to reproduce the behavior:
Create a Windows container and install LogMonitor
Wrap a process using:
Inside the process, output a long line (e.g.):
Observe: LogMonitor crashes and the container exits
Expected behavior
LogMonitor should handle long log lines safely — either truncating, splitting, or forwarding them — without crashing the wrapped process.
Screenshots
N/A — reproducible via script
Configuration
Tool: LogMonitor
Version: Latest Log Monitor Version 2.1.1 commit d36c314
Environment:
Additional context
No visible error or stack trace. Likely caused by buffer/encoding limits when forwarding stdout. High impact for any apps producing verbose or dynamic logs.
This line is my prime suspect and if you know cpp maybe it is obvious.