I am attempting to consume logs to Grafana in a lucee commandbox docker image. I had planned to send the loggers to the console so I could format and then consume them. However I noticed that exceptions were already shown in the console output, but delayed and chopped mid-message. It feels like it is buffering the errors prior to sending to the output.
I was able to reproduce this in a lucee docker image and also running locally using multiple versions.
For example, my test page is simply:
if I refresh the page a few times, I’ll eventually start to see messages like so:
"[ERROR] runwar.context: teHandler.java:43)
that goes on for about 8000+ characters and then abruptly cuts off.
So I have a few questions:
- Is this normal behavior
- Is there a better way I could/should be collecting and formatting the logger output?
Don’t forget to tell us about your stack!
Lucee Version: email@example.com+120, but I also tested firstname.lastname@example.org-SNAPSHOT