We’re working on improving our AWS setup with Dock...
# lucee
g
We’re working on improving our AWS setup with Docker and Lucee, and we want to use Cloudwatch for logs. Is it possible to have all Lucee logging being send to
stdout
and
stderr
? So that it becomes part of the Docker logs and picked up by Cloudwatch automatically.
z
there is a console appender
the datadog appender / integration is pretty amazing
g
any documentation or resources you I could look into?
a
@domwatson don’t we do this with some kind of symlink hack like mentioned here http://mvpjava.com/docker-logging-symlink-hack/
👍 1
@guustnieuwenhuis ^^
d
Yes. works just fine. We have like this in our Dockerfile:
Copy code
# Logs that should be sent out to the world
RUN mkdir -p /opt/lucee/conf/lucee-web/logs
RUN ln -sf /proc/1/fd/1 /opt/lucee/conf/lucee-web/logs/application.log
RUN ln -sf /proc/1/fd/1 /opt/lucee/conf/lucee-web/logs/datasource.log
RUN ln -sf /proc/1/fd/1 /opt/lucee/conf/lucee-web/logs/exception.log
RUN ln -sf /proc/1/fd/1 /opt/lucee/conf/lucee-web/logs/gateway.log
# ... etc.
But configuring a console appender for each probably makes cleaner sense if working