8000 GitHub - pilhuhn/quarkiverse-logging-cloudwatch: Cloudwatch logging extension for Quarkus
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

pilhuhn/quarkiverse-logging-cloudwatch

Repository files navigation

Note
This project now lives in the Quarkiverse.

Quarkus Logging Cloudwatch

INFO

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.

Using

Add to Pom.xml

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>

application.properties

The following is a list of properties. All are required.

application.properties
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)
  1. Set to true to enable logging to CW

  2. The AWS access key

  3. The AWS secret for the key

  4. The region to log to

  5. The log-group to log to. This has to exist

  6. The log-stream name. This is created if it does not exist

  7. The minimum log message level that is forwarded

Building

Check out the source code and then in the root pom adjust the Quarkus version to your version of Quarkus.

Root pom.xml of quarkus-logging-loki
    <properties>
      <!-- adjust to your Quarkus version -->
      <quarkus.version>1.6.0.Final</quarkus.version>

Afterwards just build the extension via mvn install.

About

Cloudwatch logging extension for Quarkus

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors 2

  •  
  •  

Languages

0