How would I write debugging output / logs to the m...
# cfml-general
j
How would I write debugging output / logs to the main system output? (i.e. what I'd see on my docker-compose logs in terminal or on my ECS container logs in CloudWatch) . Just looking for a way to add some tracing logs for debugging production issues in CloudWatch. Our current setup, the lucee logs location isn't tied to any persistent storage location, so I'm wondering if there's a way to avoid using the standard application.log. Thanks as always!
j
Hey I appreciate the tip, I should have mentioned I did try that as it seemed the most promising, but it did not write anything to the container output
Although I may not have specified the parameters correctly, let me try that out
s
@jclausen is really knowledgeable when it comes to docker, he may be able to provide some insight
j
No way! It looks like all I needed was the
addNewLine
property set. This is going to be so helpful to know moving forward, thanks @Scott Steinbeck 😀
s
Glad i could help!
a
It looks like all I needed was the
addNewLine
property set.
So it wasn't writing to stdout unless it was a
\n
terminated string? Does it buffer until a
\n
I wonder (might be std behaviour for writing to
stdout
for all I know)
j
Hmm yeah I do wonder what the underlying implementation of that property is. I do find that behavior a little strange, but happy to have it working nonetheless.