diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3616fdc --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,18 @@ +name: PullRequest + +on: [pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: setup + uses: actions/setup-java@v1 + with: + java-version: 11 + - name: dependencies + run: mvn -B -q dependency:go-offline + - name: verify + run: mvn -B verify diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..d46f22d --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,37 @@ +name: Release + +on: + workflow_dispatch: {} + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + with: + token: ${{ secrets.GIT_ACTION_TOKEN }} + - name: git-configure + run: | + git config user.email "actions@github.com" + git config user.name "GitHub Actions" + - name: setup + uses: actions/setup-java@v1 + with: + java-version: 11 + server-id: sonatype-nexus + server-username: SERVER_USERNAME + server-password: SERVER_PASSWORD + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: GPG_PASSPHRASE + - name: dependencies + run: mvn -B -q dependency:go-offline + - name: prepare + run: mvn -B release:prepare + - name: perform + run: mvn -B release:perform + env: + SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }} + SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} + GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml new file mode 100644 index 0000000..624ac4d --- /dev/null +++ b/.github/workflows/snapshot.yml @@ -0,0 +1,28 @@ +name: Snapshot + +on: + push: + branches: + - 'main' + - '[1-9]+.[0-9]+.x' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: checkout + uses: actions/checkout@v2 + - name: setup + uses: actions/setup-java@v1 + with: + java-version: 11 + server-id: sonatype-nexus + server-username: SERVER_USERNAME + server-password: SERVER_PASSWORD + - name: dependencies + run: mvn -B -q dependency:go-offline + - name: deploy + run: mvn -B deploy + env: + SERVER_USERNAME: ${{ secrets.SONATYPE_NEXUS_USERNAME }} + SERVER_PASSWORD: ${{ secrets.SONATYPE_NEXUS_PASSWORD }} diff --git a/README.md b/README.md index c62e597..232bb4c 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,8 @@ ## Features -### Preconfigured Appender +### Available Appender -Buildin appender: * console format * Stackdriver format (with support for error reporting) @@ -94,9 +93,9 @@ logger: header: ${logger.request.header.header-name} ``` -### Add princial for request to MDC +### Add principal for request to MDC -Confguration: +Configuration: * *enabled*: enable HTTP principal filter (`true` is default) * *order*: order for [Ordered](https://github.com/micronaut-projects/micronaut-core/blob/master/core/src/main/java/io/micronaut/core/order/Ordered.java) ([ServerFilterPhase.SECURITY.after()](https://github.com/micronaut-projects/micronaut-core/blob/v2.0.1/http/src/main/java/io/micronaut/http/filter/ServerFilterPhase.java#L54) is default) * *path*: filter path (`/**` is default) diff --git a/pom.xml b/pom.xml index 0eeb679..29bb2d4 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ io.kokuwa maven-parent - 0.2.0 + 0.2.3 @@ -13,8 +13,8 @@ micronaut-logging 0.0.4-SNAPSHOT - Micronaut Logging Support - TODO + Logging support for Micronaut + Endhanced logging using MDC or request header. https://github.com/kokuwaio/micronaut-logging 2020 @@ -24,6 +24,13 @@ + + + Stephan Schnabel + https://github.com/stephanschnabel + + + https://github.com/kokuwaio/micronaut-logging scm:git:https://github.com/kokuwaio/micronaut-logging.git