Note
|
This project now lives in the Quarkiverse. |
This is a proof of concept, do not use for production
This Quarkus extension provides support for sending log records to Amazon CloudWatch.
Just add it to your pom, enable it in application.properties
and you are ready to go.
Build the extension locally (see below) and then add this to your Application’s pom.xml:
<dependency>
<groupId>io.quarkus</groupId>
<artifactId>quarkus-logging-cloudwatch</artifactId>
<version>919-SNAPSHOT</version>
</dependency>
The following is a list of properties. All are required.
quarkus.log.cloudwatch=true # (1) quarkus.log.cloudwatch.access-key-id=<your key> # (2) quarkus.log.cloudwatch.access-key-secret=<your secret> # (3) quarkus.log.cloudwatch.region=us-east-1 # (4) quarkus.log.cloudwatch.log-group=<my-log-goup> # (5) quarkus.log.cloudwatch.log-stream-name=<my-log-stream> # (6) quarkus.log.cloudwatch.level=INFO # (7)
-
Set to true to enable logging to CW
-
The AWS access key
-
The AWS secret for the key
-
The region to log to
-
The log-group to log to. This has to exist
-
The log-stream name. This is created if it does not exist
-
The minimum log message level that is forwarded
Check out the source code and then in the root pom adjust the Quarkus version to your version of Quarkus.
<properties>
<!-- adjust to your Quarkus version -->
<quarkus.version>1.6.0.Final</quarkus.version>
Afterwards just build the extension via mvn install
.