Logging to AWS CloudWatch
=========================
To log to AWS CloudWatch there are two modifications required:
1) adding ``org.slf4j.bridge.SLF4JBridgeHandler`` to ``logging`` bean:
.. code:: dsl
logging () {
rootHandlers = [ 'java.util.logging.ConsoleHandler', 'java.util.logging.FileHandler', 'org.slf4j.bridge.SLF4JBridgeHandler' ]
}
2) Add appender configuration to logback.xml configuration file:
.. code:: xml
%d{yyyy-MM-dd HH:mm:ss.SSS} %-5level [%20(%thread)] %logger{5}.%method\(\): %msg %n
/kangaroo-logs/${VHOST}
${EXTERNAL_IP}/
us-west-2
50
30000
5000
60
and it to root logger configuration:
.. code:: xml